summaryrefslogtreecommitdiffstats
path: root/ansible/roles/gsm-tester
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-02-20 12:49:25 +0100
committerpespin <pespin@sysmocom.de>2020-02-21 21:54:47 +0000
commitbae935855071bc20901a50f28d66290fcd578669 (patch)
tree717fb378934d772cdde30772a9b5ff986c66ac22 /ansible/roles/gsm-tester
parent584acbb7ab08c6cb8a13b4106762afcd5fe8af23 (diff)
ansible: gsm-tester: add jenkins user to osmo-gsm-tester group on slaves
Diffstat (limited to 'ansible/roles/gsm-tester')
-rw-r--r--ansible/roles/gsm-tester/tasks/main.yml17
1 files changed, 14 insertions, 3 deletions
diff --git a/ansible/roles/gsm-tester/tasks/main.yml b/ansible/roles/gsm-tester/tasks/main.yml
index eff4939..fc3def9 100644
--- a/ansible/roles/gsm-tester/tasks/main.yml
+++ b/ansible/roles/gsm-tester/tasks/main.yml
@@ -257,15 +257,26 @@
- osmo-gsm-tester-main
- osmo-gsm-tester-proc
-- name: add jenkins to osmo-gsm-tester and systemd-journal
+- name: Add jenkins user to osmo-gsm-tester group
user:
- name: jenkins
+ name: "{{ jenkins_user }}"
groups: "{{ item }}"
append: yes
shell: /bin/bash
with_items:
- - systemd-journal
- osmo-gsm-tester
+ tags:
+ - osmo-gsm-tester-main
+ - osmo-gsm-tester-proc
+
+- name: add jenkins user to systemd-journal and dialout groups
+ user:
+ name: "{{ jenkins_user }}"
+ groups: "{{ item }}"
+ append: yes
+ shell: /bin/bash
+ with_items:
+ - systemd-journal
- dialout
tags:
- osmo-gsm-tester-main