ntp.yml 310 Bytes
Newer Older
Julian Gethmann's avatar
Julian Gethmann committed
1 2
---
- name: install ntpdate
3 4 5
  package: 
    state: installed
    name: ntpdate
Julian Gethmann's avatar
Julian Gethmann committed
6 7 8 9 10 11 12 13 14
  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