From 45df14763eed613b9a0e0e53923583e86d726f30 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 20 Mar 2019 11:00:01 +0000 Subject: [PATCH] Use NTP to sync time --- dotfiles.yml | 1 + tasks/ntp.yml | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 tasks/ntp.yml 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