17 lines
451 B
YAML
17 lines
451 B
YAML
---
|
|
- name: Install Chrony
|
|
package: name=chrony state=latest
|
|
|
|
- name: Show pools
|
|
debug: var=chrony_pools
|
|
|
|
- name: Template config file
|
|
template: "src=chrony.conf.j2 dest='{{ chrony_config_path }}' mode=0644 owner=root group=root backup=yes"
|
|
|
|
- name: Restart Chrony with new config
|
|
service: "name='{{ chrony_service_name }}' state=restarted"
|
|
|
|
- name: Enable Chrony at boot
|
|
service: "name={{ chrony_service_name }} state=started enabled=yes"
|
|
|