From 48d0db45d2ac05e42f6219667008bf73ea41d19d Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing Date: Tue, 19 Jan 2021 13:14:10 +0100 Subject: space_server: chrony: run chrony ntp server --- roles/space_server/tasks/chrony.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 roles/space_server/tasks/chrony.yml (limited to 'roles/space_server/tasks/chrony.yml') diff --git a/roles/space_server/tasks/chrony.yml b/roles/space_server/tasks/chrony.yml new file mode 100644 index 0000000..2777591 --- /dev/null +++ b/roles/space_server/tasks/chrony.yml @@ -0,0 +1,22 @@ +--- +- name: Configure chrony.conf + copy: + dest: '/etc/chrony.conf' + src: chrony.conf + owner: root + group: root + mode: 0644 + notify: restart chronyd + +- name: Enable chronyd service + systemd: + name: chronyd.service + enabled: yes + masked: no + state: started + when: not chroot +- name: '- when in chroot' + command: systemctl enable chronyd.service + when: chroot + +# vim: set ts=2 sw=2 et ft=yaml: -- cgit v1.2.1