Skip to content

Commit 5bb7fe6

Browse files
committed
[report_result] Check if the logs dir exists
1 parent ac5c3d5 commit 5bb7fe6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ci/report_result.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,17 @@
55
vars_files:
66
- vars/common.yml
77
tasks:
8+
- name: Check whether the log dir exists
9+
ansible.builtin.stat:
10+
path: "{{ logs_dir }}"
11+
register: stat_out
12+
13+
- name: show whetehr the log dir exists
14+
ansible.builtin.debug:
15+
var: stat_out
16+
817
- name: Create log dir
18+
when: not stat_out.stat.exists
919
ansible.builtin.file:
1020
path: "{{ logs_dir }}"
1121
state: directory

0 commit comments

Comments
 (0)