123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- ---
-
-
-
-
-
- - name: Deploy chrony server
- block:
- - name: Deploy chrony
- package:
- name: chrony
- state: present
- - name: Update ntp servers
- template:
- src: chrony.conf.j2
- dest: "{{ chrony_path }}"
- owner: root
- group: root
- mode: "{{ ntp_mode }}"
- backup: yes
- notify:
- - restart chrony
- - sync chrony sources
- when: ( ansible_distribution == "CentOS" or ansible_distribution == "RedHat" ) and ansible_distribution_major_version > os_version
|