Retargetting log removal task
Existing log dir removal task, added with Ia4e2fbbbd02d66522fc5f92441f9b6d3c0ebd840 was targetting wrong directory, essentially becoming useless. With this change the location will be cleaned up before execution of the tests as intened. Closes-Bug: #1993262 Signed-off-by: Jiri Podivin <jpodivin@redhat.com> Change-Id: Ic2130702ca459b62a82682c7e85b89359ac6dcbe
This commit is contained in:
parent
b02d478d51
commit
f9b11a160b
|
@ -1,11 +1,21 @@
|
|||
---
|
||||
- name: Remove validations log dir to ensure clean env
|
||||
- name: Remove user local log dir to ensure clean env
|
||||
become: true
|
||||
file:
|
||||
path: "{{ vf_log_dir }}"
|
||||
path: "{{ ansible_user_dir }}/validations"
|
||||
state: absent
|
||||
|
||||
- name: Recreate validations Log dir exists
|
||||
- name: Recreate user local log dir
|
||||
become: true
|
||||
file:
|
||||
path: "{{ ansible_user_dir }}/validations"
|
||||
state: directory
|
||||
mode: "0755"
|
||||
owner: "{{ ansible_user }}"
|
||||
group: "{{ ansible_user }}"
|
||||
recurse: true
|
||||
|
||||
- name: Ensure validations Log dir exists
|
||||
become: true
|
||||
file:
|
||||
path: "{{ vf_log_dir }}"
|
||||
|
|
Loading…
Reference in New Issue