diff options
author | Christian Pointner <equinox@spreadspace.org> | 2020-11-27 21:24:53 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2020-11-28 00:52:02 +0100 |
commit | 8ffeaf71efa7472ff8511c445aa8874b1b1f3613 (patch) | |
tree | 18132a977c42dd04a23ed61550df3a495d899f24 /roles/core/ntp/tasks | |
parent | kubernetes/standalone: fix config hash annotation if role is included multipl... (diff) |
move chrony role to core/ntp (WIP)
Diffstat (limited to 'roles/core/ntp/tasks')
-rw-r--r-- | roles/core/ntp/tasks/chrony.yml | 11 | ||||
-rw-r--r-- | roles/core/ntp/tasks/main.yml | 5 |
2 files changed, 16 insertions, 0 deletions
diff --git a/roles/core/ntp/tasks/chrony.yml b/roles/core/ntp/tasks/chrony.yml new file mode 100644 index 00000000..d220af30 --- /dev/null +++ b/roles/core/ntp/tasks/chrony.yml @@ -0,0 +1,11 @@ +--- +- name: install chrony + apt: + name: chrony + state: present + +- name: install chrony configuration + template: + src: chrony.conf.j2 + dest: /etc/chrony/chrony.conf + notify: restart chrony diff --git a/roles/core/ntp/tasks/main.yml b/roles/core/ntp/tasks/main.yml new file mode 100644 index 00000000..77f281ff --- /dev/null +++ b/roles/core/ntp/tasks/main.yml @@ -0,0 +1,5 @@ +--- +## TODO: make this work on openbsd and debian/ubuntu +- name: run ntp-variant specific tasks + when: ntp_variant is defined + include_tasks: "{{ ntp_variant }}.yml" |