aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2021-03-08 17:25:45 +0100
committerOliver Smith <osmith@sysmocom.de>2021-03-08 17:28:57 +0100
commit13e705f1ff3c82571dcba5ea6ed707b971cc55de (patch)
treea6258822745153c0b1785439590ebf9849b8cdce
parentaee8b3f14b82dbe9318dc9b0aff66260ea4e8254 (diff)
ansible: explicitly give jenkins user UID=1000
docker-playground.git assumes that its containers run as UID=1000, otherwise some will fail with errors like: + osmo-clean-workspace.sh + chmod -R +w . chmod: changing permissions of '.': Operation not permitted Make this assumption explicit with "uid: 1000" in "add user jenkins". This causes ansible to verify that the UID is really 1000, and if it is not, it changes the UID. A follow-up patch will remove Raspbian's default user of the same UID. Related: OS#5055 Change-Id: I6efc9e74049e179d2f86655217195e76789ba77d
-rw-r--r--ansible/roles/osmocom-jenkins-slave/tasks/main.yml1
1 files changed, 1 insertions, 0 deletions
diff --git a/ansible/roles/osmocom-jenkins-slave/tasks/main.yml b/ansible/roles/osmocom-jenkins-slave/tasks/main.yml
index b7fa2d3..3a5cafa 100644
--- a/ansible/roles/osmocom-jenkins-slave/tasks/main.yml
+++ b/ansible/roles/osmocom-jenkins-slave/tasks/main.yml
@@ -11,6 +11,7 @@
ssh_key_bits: 4096
ssh_key_type: rsa
shell: /bin/bash
+ uid: 1000
- name: setup jenkins ssh key
authorized_key: