Merge "Fix POST_FAILURE in CI when ARA DB doesn't exist"
This commit is contained in:
commit
5f323afe9a
@ -37,15 +37,22 @@
|
|||||||
|
|
||||||
- hosts: primary
|
- hosts: primary
|
||||||
tasks:
|
tasks:
|
||||||
- name: ensure ara-report folder existence
|
- name: check for existence of ara sqlite
|
||||||
file:
|
stat:
|
||||||
path: "{{ zuul.executor.log_root }}/{{ inventory_hostname }}/ara-report"
|
path: "{{ ansible_env.HOME }}/.ara/ansible.sqlite"
|
||||||
state: directory
|
register: ara_stat_result
|
||||||
delegate_to: localhost
|
|
||||||
run_once: true
|
|
||||||
|
|
||||||
- name: download ara sqlite
|
- block:
|
||||||
synchronize:
|
- name: ensure ara-report folder existence
|
||||||
src: "{{ ansible_env.HOME }}/.ara/ansible.sqlite"
|
file:
|
||||||
dest: "{{ zuul.executor.log_root }}/{{ inventory_hostname }}/ara-report/"
|
path: "{{ zuul.executor.log_root }}/{{ inventory_hostname }}/ara-report"
|
||||||
mode: pull
|
state: directory
|
||||||
|
delegate_to: localhost
|
||||||
|
run_once: true
|
||||||
|
|
||||||
|
- name: download ara sqlite
|
||||||
|
synchronize:
|
||||||
|
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