NTP role for ansible galaxy https://github.com/cowops/debian-ntp
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
205B

  1. ---
  2. - name: install ntp
  3. apt: pkg={{ item }} state=latest
  4. with_items:
  5. - ntp
  6. notify: restart ntp
  7. - name: copy ntp default conf
  8. template: src=ntp.conf.j2 dest=/etc/ntp.conf
  9. notify: restart ntp