Federico Ressi 9108be7e83 Avoid re-stacking when not necessary
Also adds a swap file of 8GB

Change-Id: I50b7dcb5ca40c9840ae086006c9d868637d3b5d0
2020-10-02 15:39:53 +02:00

25 lines
462 B
YAML

---
- include_tasks: check_restack.yaml
- name: run unstack.sh
become: yes
become_user: stack
shell:
cmd: |
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: yes
when: force_restack | bool
- debug: var=run_unstack.stdout_lines
when: run_unstack is failed