main.yml 205 B

12345678910
  1. ---
  2. - name: restart ntpd
  3. service: name=ntpd state=restarted enabled=yes
  4. - name: sync clocks
  5. command: ntpdc -np
  6. register: ntp_clock
  7. until: ntp_clock.stdout.find('*') > -1
  8. retries: 10
  9. delay: 60