aboutsummaryrefslogtreecommitdiffstats
path: root/roles/space_server/tasks
diff options
context:
space:
mode:
authorEmil Renner Berthing <esmil@labitat.dk>2021-01-29 17:13:04 +0100
committerEmil Renner Berthing <esmil@labitat.dk>2021-01-29 17:13:04 +0100
commit60677a37ad8fda4cd05c8b4eb5f318a63dff3e19 (patch)
treea238215d9ef05853f54b658cfefaca77dfe0cfc2 /roles/space_server/tasks
parentae380ddbe21e05be75b924a69b8e2861f4954a8f (diff)
downloadlabitat-ansible-60677a37ad8fda4cd05c8b4eb5f318a63dff3e19.tar.gz
labitat-ansible-60677a37ad8fda4cd05c8b4eb5f318a63dff3e19.tar.xz
labitat-ansible-60677a37ad8fda4cd05c8b4eb5f318a63dff3e19.zip
space_server: chrony: start chrony after we're online
Diffstat (limited to 'roles/space_server/tasks')
-rw-r--r--roles/space_server/tasks/chrony.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/roles/space_server/tasks/chrony.yml b/roles/space_server/tasks/chrony.yml
index 2777591..633e2f2 100644
--- a/roles/space_server/tasks/chrony.yml
+++ b/roles/space_server/tasks/chrony.yml
@@ -8,6 +8,22 @@
mode: 0644
notify: restart chronyd
+- name: Create service drop-in directory
+ file:
+ dest: '/etc/systemd/system/chronyd.service.d'
+ state: directory
+ owner: root
+ group: root
+ mode: 0755
+
+- name: Start chrony after networks are configured
+ copy:
+ dest: '/etc/systemd/system/chronyd.service.d/wait-online.conf'
+ src: wait-online.conf
+ owner: root
+ group: root
+ mode: 0644
+
- name: Enable chronyd service
systemd:
name: chronyd.service