Browse Source

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

Change-Id: Iffdf99bb00ec24b95269985aab969fd2c6896676
changes/92/738392/2
Federico Ressi 10 months ago
parent
commit
a5d82af9c4
2 changed files with 2 additions and 5 deletions
  1. +1
    -2
      roles/tobiko-devstack/tasks/run-stack.yaml
  2. +1
    -3
      roles/tobiko-devstack/tasks/run-unstack.yaml

+ 1
- 2
roles/tobiko-devstack/tasks/run-stack.yaml View File

@ -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


+ 1
- 3
roles/tobiko-devstack/tasks/run-unstack.yaml View File

@ -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