12345678910111213141516171819202122232425262728293031323334353637383940 |
- ---
- - name: Restart ntpd
- service:
- name: ntpd
- state: restarted
- enabled: yes
- - name: Restart chrony
- service:
- name: chronyd
- state: restarted
- enabled: yes
- - name: Sync tp clocks
- command: ntpdc -np
- register: ntp_clock
- until: ntp_clock.stdout.find('*') > -1
- retries: "{{ retry_count_one }}"
- delay: "{{ delay_count_one }}"
- - name: Sync chrony sources
- command: chronyc sources
- register: chrony_src
- until: chrony_src.stdout.find('^*') > -1
- retries: "{{ retry_count }}"
- delay: "{{ delay_count }}"
|