roles_timesync/roles/timesync-enabled/tasks/timesync_chrony.yml

25 lines
373 B
YAML
Raw Normal View History

2020-12-02 21:14:58 +00:00
---
- name: Install Chrony
package:
name: chrony
state: latest
- name: Template chrony.conf
template:
src: etc/chrony/chrony.conf.j2
dest: /etc/chrony/chrony.conf
owner: root
group: root
mode: 0644
backup: yes
notify: Restart Chrony
- name: Enable Chrony daemon
service:
name: "{{ chrony_service_name }}"
enabled: True