aboutsummaryrefslogtreecommitdiffstats
path: root/roles/proxmox_hypervisor/tasks/chrony.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/proxmox_hypervisor/tasks/chrony.yml')
-rw-r--r--roles/proxmox_hypervisor/tasks/chrony.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/roles/proxmox_hypervisor/tasks/chrony.yml b/roles/proxmox_hypervisor/tasks/chrony.yml
new file mode 100644
index 0000000..ed9b0ce
--- /dev/null
+++ b/roles/proxmox_hypervisor/tasks/chrony.yml
@@ -0,0 +1,11 @@
+- name: generate chrony.conf
+ template:
+ src: etc/chrony/chrony.conf.j2
+ dest: /etc/chrony/chrony.conf
+ notify: restart chrony
+
+- name: start chrony
+ systemd:
+ name: chronyd
+ enabled: yes
+ state: started