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
roles:
- base
- role: geerlingguy.ntp
become: true
vars:
ntp_timezone: Europe/London
- hosts: casey
roles:

View File

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

View File

@ -1,5 +1,2 @@
- name: NTP
include: ntp.yml
- name: Packages
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