aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2021-03-10 16:57:12 +0100
committerOliver Smith <osmith@sysmocom.de>2021-03-10 17:06:10 +0100
commit9b493f64ce52ca25d459456322919aa09484727f (patch)
tree0b9cd84b8e57c276751401b39fd468a61fddb77c
parentca8b26a18c065246eca91c1604ef56ab829c3315 (diff)
ansible: jenkins-slave: enable ntpd
Enable ntpd to prevent clock difference issues reported by jenkins. I just saw them appearing with one of the new raspberry pis. Related: https://jenkins.osmocom.org/jenkins/computer/ (shows clock diff) Change-Id: I2685e60221b0f3baa3f9e6076c01acf37cd38444
-rw-r--r--ansible/roles/ntpd/README.md1
-rw-r--r--ansible/roles/ntpd/tasks/main.yml10
-rw-r--r--ansible/setup-jenkins-slave.yml2
3 files changed, 13 insertions, 0 deletions
diff --git a/ansible/roles/ntpd/README.md b/ansible/roles/ntpd/README.md
new file mode 100644
index 0000000..92338c9
--- /dev/null
+++ b/ansible/roles/ntpd/README.md
@@ -0,0 +1 @@
+# Install ntpd for debian
diff --git a/ansible/roles/ntpd/tasks/main.yml b/ansible/roles/ntpd/tasks/main.yml
new file mode 100644
index 0000000..b4ca48f
--- /dev/null
+++ b/ansible/roles/ntpd/tasks/main.yml
@@ -0,0 +1,10 @@
+---
+- name: install ntp from debian
+ apt:
+ name: ntp
+
+- name: start and enable ntp daemon
+ systemd:
+ name: ntp
+ state: started
+ enabled: yes
diff --git a/ansible/setup-jenkins-slave.yml b/ansible/setup-jenkins-slave.yml
index 8565530..07414aa 100644
--- a/ansible/setup-jenkins-slave.yml
+++ b/ansible/setup-jenkins-slave.yml
@@ -42,6 +42,8 @@
tags:
- jenkins-slave
+ - name: ntpd
+
- name: setup coverity slaves
hosts: coverity-slaves
user: root