diff options
Diffstat (limited to 'lib/ansible')
-rw-r--r-- | lib/ansible/playbooks/deploy_overcloud.yml | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/lib/ansible/playbooks/deploy_overcloud.yml b/lib/ansible/playbooks/deploy_overcloud.yml index 53dc6994..a9c3b982 100644 --- a/lib/ansible/playbooks/deploy_overcloud.yml +++ b/lib/ansible/playbooks/deploy_overcloud.yml @@ -89,12 +89,27 @@ - block: - name: Execute Overcloud Deployment shell: "{{ stackrc }} && bash deploy_command" - + become: yes + become_user: stack rescue: - name: Show overcloud failures shell: "{{ stackrc }} && openstack stack failures list overcloud --long" - become: yes - become_user: stack + become: yes + become_user: stack + always: + - name: Archive Mistral logs + archive: + path: + - /var/lib/mistral + - /var/log/mistral + dest: /root/mistral_logs.tar.gz + become: yes + - name: Fetch mistral logs + fetch: + src: /root/mistral_logs.tar.gz + dest: "{{ apex_temp_dir }}/" + flat: yes + become: yes - name: Show Keystone output shell: "{{ overcloudrc }} && {{ item }}" when: debug |