Install ntp from galaxy
This commit is contained in:
parent
85f6f59970
commit
fa929cbca5
4 changed files with 5 additions and 22 deletions
|
@ -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:
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
- src: geerlingguy.docker
|
- src: geerlingguy.docker
|
||||||
|
- src: geerlingguy.ntp
|
||||||
|
|
|
@ -1,5 +1,2 @@
|
||||||
- name: NTP
|
|
||||||
include: ntp.yml
|
|
||||||
|
|
||||||
- name: Packages
|
- name: Packages
|
||||||
include: packages.yml
|
include: packages.yml
|
||||||
|
|
|
@ -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
|
|
Loading…
Reference in a new issue