Browse Source

Avoid sudo's 'secure_path' value from affecting stack.sh/unstack.sh scripts

Change-Id: Iffdf99bb00ec24b95269985aab969fd2c6896676
changes/92/738392/2
Federico Ressi 1 year ago
parent
commit
a5d82af9c4
  1. 3
      roles/tobiko-devstack/tasks/run-stack.yaml
  2. 4
      roles/tobiko-devstack/tasks/run-unstack.yaml

3
roles/tobiko-devstack/tasks/run-stack.yaml

@ -5,8 +5,7 @@
become_user: stack
shell:
cmd: |
source /etc/profile
./stack.sh 2>&1
sudo su -l stack -c "cd '{{ devstack_dir }}' && ./stack.sh" 2>&1
rc=$?
echo "*** FINISHED ***"
exit $rc

4
roles/tobiko-devstack/tasks/run-unstack.yaml

@ -12,12 +12,10 @@
become_user: stack
shell:
cmd: |
source /etc/profile
./unstack.sh 2>&1
sudo su -l stack -c "cd '{{ devstack_dir }}' && ./unstack.sh" 2>&1
rc=$?
echo "*** FINISHED ***"
exit $rc
chdir: '{{ devstack_dir }}'
register: run_unstack
ignore_errors: yes
when:

Loading…
Cancel
Save