Commit 6f02215e authored by julian.gethmann's avatar julian.gethmann

Fix iss #45 by adapting to the new Fedora NTP config path

parent 8562549e
...@@ -13,6 +13,21 @@ ...@@ -13,6 +13,21 @@
- enable ntp - enable ntp
changed_when: False changed_when: False
- name: insert SCC into ntp configuration
become: yes
blockinfile:
insertafter: ^server .*[a-z]+.*$
path: /etc/ntp/step-tickers
backup: yes
state: present
block: |
server ntp1.scc.kit.edu
server ntp2.scc.kit.edu
server ntp3.scc.kit.edu
server ntp4.scc.kit.edu
tags: ntp
when: (ansible_distribution == 'Fedora' and ansible_distribution_major_version >= 28)
- name: insert SCC into ntp configuration - name: insert SCC into ntp configuration
become: yes become: yes
blockinfile: blockinfile:
...@@ -26,3 +41,6 @@ ...@@ -26,3 +41,6 @@
server ntp3.scc.kit.edu server ntp3.scc.kit.edu
server ntp4.scc.kit.edu server ntp4.scc.kit.edu
tags: ntp tags: ntp
when: (ansible_distribution == 'Fedora' and ansible_distribution_major_version < 28)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment