ntp.yml 292 Bytes
Newer Older
julian.gethmann's avatar
julian.gethmann committed
1
2
3
4
5
6
7
8
9
10
11
12
---
- name: install ntpdate
  dnf: state=latest name=ntpdate
  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