Federico Ressi 4672f7ab33 Fix run-stack task
Change-Id: I8257f4f04e20bd8fd39787d9f07071f8b5738bd7
2021-11-08 12:08:54 +00:00

27 lines
548 B
YAML

---
- include_tasks: check-restack.yaml
- name: run stack.sh
become: true
shell:
cmd: |
chown -R stack.stack /opt/stack/ || exit 66
su -l stack -c "
cd '{{ devstack_dir }}' &&
./stack.sh &&
touch '{{ stack_succeeded_file }}'
" 2>&1
rc=$?
echo "*** FINISHED ***"
exit $rc
chdir: '{{ devstack_dir }}'
register: run_stack
ignore_errors: true
when: force_restack | bool
- name: show stack.sh output
debug: var=run_stack.stdout_lines
failed_when: run_stack is failed