ntp.yml 299 Bytes
Newer Older
julian.gethmann's avatar
julian.gethmann committed
1 2
---
- name: install ntpdate
julian.gethmann's avatar
julian.gethmann committed
3
  package: state=installed name=ntpdate
julian.gethmann's avatar
julian.gethmann committed
4 5 6 7 8 9 10 11 12
  become: yes

- name: set time server
  command: ntpdate -u ntp1.scc.kit.edu ntp2.scc.kit.edu ntp3.scc.kit.edu 0.fedora.pool.ntp.org 0.fedora.pool.ntp.org
  become: yes
  notify:
  - start ntp
  - enable ntp
  changed_when: False