Skip to content
Snippets Groups Projects
Commit 5f323afe authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "Fix POST_FAILURE in CI when ARA DB doesn't exist"

parents a8d27f5a 652b78fc
No related branches found
No related tags found
No related merge requests found
...@@ -37,15 +37,22 @@ ...@@ -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 - block:
- name: ensure ara-report folder existence
- name: download ara sqlite file:
synchronize: path: "{{ zuul.executor.log_root }}/{{ inventory_hostname }}/ara-report"
src: "{{ ansible_env.HOME }}/.ara/ansible.sqlite" state: directory
dest: "{{ zuul.executor.log_root }}/{{ inventory_hostname }}/ara-report/" delegate_to: localhost
mode: pull 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment