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
tasks:
- name: Ping
ping:
roles:
- ntp
- hosts: casey
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