Merge "Fix POST_FAILURE in CI when ARA DB doesn't exist"
This commit is contained in:
commit
5f323afe9a
@ -37,6 +37,12 @@
|
||||
|
||||
- hosts: primary
|
||||
tasks:
|
||||
- name: check for existence of ara sqlite
|
||||
stat:
|
||||
path: "{{ ansible_env.HOME }}/.ara/ansible.sqlite"
|
||||
register: ara_stat_result
|
||||
|
||||
- block:
|
||||
- name: ensure ara-report folder existence
|
||||
file:
|
||||
path: "{{ zuul.executor.log_root }}/{{ inventory_hostname }}/ara-report"
|
||||
@ -49,3 +55,4 @@
|
||||
src: "{{ ansible_env.HOME }}/.ara/ansible.sqlite"
|
||||
dest: "{{ zuul.executor.log_root }}/{{ inventory_hostname }}/ara-report/"
|
||||
mode: pull
|
||||
when: ara_stat_result.stat.exists
|
||||
|
Loading…
Reference in New Issue
Block a user