diff --git a/roles/validations/tasks/main.yaml b/roles/validations/tasks/main.yaml index c21ac1c..300383f 100644 --- a/roles/validations/tasks/main.yaml +++ b/roles/validations/tasks/main.yaml @@ -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 }}"