Use NTP to sync time

This commit is contained in:
Jake Howard 2019-03-20 11:00:01 +00:00
parent 39391a16c6
commit 45df14763e
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 14 additions and 0 deletions

View file

@ -23,6 +23,7 @@
- import_tasks: tasks/media.yml - import_tasks: tasks/media.yml
- import_tasks: tasks/security.yml - import_tasks: tasks/security.yml
- import_tasks: tasks/autostart.yml - import_tasks: tasks/autostart.yml
- import_tasks: tasks/ntp.yml
- import_tasks: tasks/dabapps.yml - import_tasks: tasks/dabapps.yml
when: ansible_fqdn == "TOO-Work" when: ansible_fqdn == "TOO-Work"

13
tasks/ntp.yml Normal file
View file

@ -0,0 +1,13 @@
- name: "Install NTP"
aur:
skip_installed: true
name: "{{ item }}"
become: true
become_user: aur_builder
when: "item not in installed_packages.stdout_lines"
with_items:
- ntp
- service:
name: "ntpd"
enabled: true