summaryrefslogtreecommitdiffstats
path: root/ansible/roles/gsm-tester/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/gsm-tester/tasks/main.yml')
-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