Install ntp from galaxy

This commit is contained in:
Jake Howard 2020-03-02 19:45:16 +00:00
parent 85f6f59970
commit fa929cbca5
Signed by: jake
GPG key ID: 57AFB45680EDD477
4 changed files with 5 additions and 22 deletions

View file

@ -1,6 +1,10 @@
- hosts: all - hosts: all
roles: roles:
- base - base
- role: geerlingguy.ntp
become: true
vars:
ntp_timezone: Europe/London
- hosts: casey - hosts: casey
roles: roles:

View file

@ -1 +1,2 @@
- src: geerlingguy.docker - src: geerlingguy.docker
- src: geerlingguy.ntp

View file

@ -1,5 +1,2 @@
- name: NTP
include: ntp.yml
- name: Packages - name: Packages
include: packages.yml include: packages.yml

View file

@ -1,19 +0,0 @@
- name: "Install NTP"
apt:
name: "ntp"
become: true
become_user: root
- name: Set timezone
timezone:
name: Europe/London
become: true
become_user: root
- name: Enable NTP service
systemd:
name: ntp
enabled: true
state: started
become: true
become_user: root