Commit c254f175 authored by julian.gethmann's avatar julian.gethmann

Add SCC NTP servers to ntp.conf

parent 94149573
---
- name: install ntpdate
package:
package:
state: installed
name: ntpdate
become: yes
......@@ -12,3 +12,17 @@
- start ntp
- enable ntp
changed_when: False
- name: insert SCC into ntp configuration
become: yes
blockinfile:
insertafter: ^server .*[a-z]+.*$
path: /etc/ntp.conf
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
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