Ansible "become" and "/data" basically requires root access to the
tester machine, but that is not always the case. Tweak the playbook a
bit to allow that.
Signed-off-by: Fam Zheng <famz@redhat.com>
---
scripts/playbooks/deploy-testers.yml | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/scripts/playbooks/deploy-testers.yml b/scripts/playbooks/deploy-testers.yml
index ae3ab0b..7b375db 100644
--- a/scripts/playbooks/deploy-testers.yml
+++ b/scripts/playbooks/deploy-testers.yml
@@ -23,7 +23,7 @@
default: patchew
private: no
vars:
- base_dir: "/data/{{ instance_name }}"
+ base_dir: "{{ instance_name }}"
src_dir: "{{ base_dir }}/src"
patchew_cmd: "{{ src_dir }}/patchew-cli -s {{ patchew_server }}"
tasks:
@@ -52,16 +52,10 @@
- "--exclude=/venv"
- name: Generate password file
shell: "echo {{ tester_pass }} > $HOME/.patchew-tester-pass"
- become: true
- become_user: "{{ cron_user }}"
- name: Login with patchew-cli
shell: "{{ patchew_cmd }} login {{ tester_user }} $(cat $HOME/.patchew-tester-pass)"
- become: true
- become_user: "{{ cron_user }}"
- name: Logout with patchew-cli
shell: "{{ patchew_cmd }} logout"
- become: true
- become_user: "{{ cron_user }}"
- name: Define PATCHEW env in cron
cron:
name: PATCHEW
--
2.17.1
_______________________________________________
Patchew-devel mailing list
Patchew-devel@redhat.com
https://www.redhat.com/mailman/listinfo/patchew-devel