Fix create working directory before test

Signed-off-by: Hideki Saito <saito@fgrep.org>
This commit is contained in:
Hideki Saito 2021-10-04 13:18:09 +09:00
parent b1a15490b9
commit 75abaa57f4
2 changed files with 12 additions and 2 deletions

View file

@ -23,6 +23,16 @@
group:
name: "{{ test_group }}"
- name: Clean up working directory and files
file:
path: "{{ output_dir }}"
state: absent
- name: Create working directory
file:
path: "{{ output_dir }}"
state: directory
- name: Create ansible file
file:
path: "{{ test_file }}"

View file

@ -2,11 +2,11 @@
package:
name: rsync
when: ansible_distribution != "MacOSX"
- name: Clean up the working directory and files
- name: Clean up working directory and files
file:
path: "{{ output_dir }}"
state: absent
- name: Create the working directory
- name: Create working directory
file:
path: "{{ output_dir }}"
state: directory