Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
las-it-organisation
32-0-IT instructions and rules
ansible
Commits
c254f175
Commit
c254f175
authored
Jun 29, 2017
by
julian.gethmann
Browse files
Add SCC NTP servers to ntp.conf
parent
94149573
Changes
1
Hide whitespace changes
Inline
Side-by-side
roles/common/tasks/ntp.yml
View file @
c254f175
---
-
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment