
Depends-On: Ifa876b3e5f89258f40055fa7ce03f5e9c601771c Change-Id: I806c76bff85210f74cd23c29835f41c174b8c960
24 lines
505 B
YAML
24 lines
505 B
YAML
---
|
|
|
|
- name: check '{{ devstack_dir }}/local.conf' exists
|
|
stat:
|
|
path: '{{ devstack_dir }}/local.conf'
|
|
register: check_devstack_local_conf_file_exists
|
|
failed_when: no
|
|
|
|
|
|
- name: run unstack.sh
|
|
become: yes
|
|
become_user: stack
|
|
command:
|
|
cmd: /bin/bash ./unstack.sh
|
|
chdir: '{{ devstack_dir }}'
|
|
register: run_unstack
|
|
ignore_errors: yes
|
|
when:
|
|
check_devstack_local_conf_file_exists.stat.exists | default(False)
|
|
|
|
|
|
- debug: var=run_unstack.stderr_lines
|
|
when: run_unstack is failed
|