diff --git a/dotfiles.yml b/dotfiles.yml index 58afa84..da98e64 100644 --- a/dotfiles.yml +++ b/dotfiles.yml @@ -23,6 +23,7 @@ - import_tasks: tasks/media.yml - import_tasks: tasks/security.yml - import_tasks: tasks/autostart.yml + - import_tasks: tasks/ntp.yml - import_tasks: tasks/dabapps.yml when: ansible_fqdn == "TOO-Work" diff --git a/tasks/ntp.yml b/tasks/ntp.yml new file mode 100644 index 0000000..8404b74 --- /dev/null +++ b/tasks/ntp.yml @@ -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