tobiko/roles/tobiko-devstack/tasks/run-stack.yaml
Federico Ressi a5d82af9c4 Avoid sudo's 'secure_path' value from affecting stack.sh/unstack.sh scripts
Change-Id: Iffdf99bb00ec24b95269985aab969fd2c6896676
2020-06-29 10:45:32 +00:00

20 lines
386 B
YAML

---
- name: run stack.sh
become: yes
become_user: stack
shell:
cmd: |
sudo su -l stack -c "cd '{{ devstack_dir }}' && ./stack.sh" 2>&1
rc=$?
echo "*** FINISHED ***"
exit $rc
chdir: '{{ devstack_dir }}'
register: run_stack
ignore_errors: yes
- name: show stack.sh output
debug: var=run_stack.stdout_lines
failed_when: run_stack is failed