Use NTP to sync time
This commit is contained in:
parent
39391a16c6
commit
45df14763e
2 changed files with 14 additions and 0 deletions
|
@ -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
13
tasks/ntp.yml
Normal 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
|
Loading…
Reference in a new issue