Bez popisu
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.

ntp.yml 518B

1234567891011121314151617181920
  1. ---
  2. # Defines tasks applicable for NTP (Network Time Protocol)
  3. - name: Install ntp
  4. apt: pkg=ntp state=present
  5. tags:
  6. - dependencies
  7. - name: Configure ntp
  8. template: src=ntp.conf.j2 dest=/etc/ntp.conf
  9. notify:
  10. - restart ntp
  11. - name: Ensure ntpd is running
  12. service: name=ntp state=started
  13. # Work around https://github.com/ansible/ansible-modules-core/issues/915
  14. # otherwise we'd use enabled=yes in previous task
  15. - name: Ensure ntp is enabled
  16. command: update-rc.d ntp enable creates=/etc/rc3.d/S03ntp