summaryrefslogtreecommitdiffstats
path: root/ansible/roles/osmocom-jenkins-slave/tasks/generic-slave.yml
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/osmocom-jenkins-slave/tasks/generic-slave.yml')
-rw-r--r--ansible/roles/osmocom-jenkins-slave/tasks/generic-slave.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/ansible/roles/osmocom-jenkins-slave/tasks/generic-slave.yml b/ansible/roles/osmocom-jenkins-slave/tasks/generic-slave.yml
new file mode 100644
index 0000000..6c50754
--- /dev/null
+++ b/ansible/roles/osmocom-jenkins-slave/tasks/generic-slave.yml
@@ -0,0 +1,15 @@
+---
+
+- name: chown /usr/local/ to the jenkins user
+ file:
+ path: /usr/local/
+ recurse: yes
+ group: "{{ jenkins_user }}"
+ mode: "2775"
+
+- name: set jenkins user bin to osmo-ci
+ file:
+ src: "/home/{{ jenkins_user }}/osmo-ci/scripts"
+ dest: "/home/{{ jenkins_user }}/bin"
+ state: link
+ force: yes