Install NTP

This commit is contained in:
Jake Howard 2019-12-08 21:17:30 +00:00
parent 23a472f764
commit d0d2d6668e
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 17 additions and 3 deletions

View file

@ -1,7 +1,6 @@
- hosts: all - hosts: all
tasks: roles:
- name: Ping - ntp
ping:
- hosts: casey - hosts: casey
roles: roles:

View file

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