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

27 lines
524 B
YAML

---
- include_tasks: check_restack.yaml
- name: run stack.sh
become: true
become_user: stack
shell:
cmd: |
sudo 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