devstack-plugin-tobiko/roles/devstack-tobiko-deploy/tasks/run-unstack.yaml
Federico Ressi 3b7f6972b2 Write unbound nameservers to tobiko.conf
Change-Id: Ic4602e580202e8d1fa2005c932f2b7ba1e44e0e3
2020-11-16 11:08:53 +01:00

26 lines
519 B
YAML

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