diff options
author | Emil Renner Berthing <esmil@labitat.dk> | 2021-01-19 13:14:10 +0100 |
---|---|---|
committer | Emil Renner Berthing <esmil@labitat.dk> | 2021-01-19 13:14:10 +0100 |
commit | 48d0db45d2ac05e42f6219667008bf73ea41d19d (patch) | |
tree | 02437d4d7b6267dbe157688abeaf2c60cce9f49c /roles/space_server/tasks | |
parent | c28fe3ed473a195b5d9067c8c65676b409c19ce0 (diff) | |
download | labitat-ansible-48d0db45d2ac05e42f6219667008bf73ea41d19d.tar.gz labitat-ansible-48d0db45d2ac05e42f6219667008bf73ea41d19d.tar.xz labitat-ansible-48d0db45d2ac05e42f6219667008bf73ea41d19d.zip |
space_server: chrony: run chrony ntp server
Diffstat (limited to 'roles/space_server/tasks')
-rw-r--r-- | roles/space_server/tasks/chrony.yml | 22 | ||||
-rw-r--r-- | roles/space_server/tasks/main.yml | 2 |
2 files changed, 24 insertions, 0 deletions
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: diff --git a/roles/space_server/tasks/main.yml b/roles/space_server/tasks/main.yml index f4f89d6..112c4ce 100644 --- a/roles/space_server/tasks/main.yml +++ b/roles/space_server/tasks/main.yml @@ -17,6 +17,8 @@ tags: networkd - import_tasks: nftables.yml tags: nftables +- import_tasks: chrony.yml + tags: chrony - import_tasks: bird.yml tags: bird - import_tasks: dhcpd.yml |