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: group:
name: "{{ test_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 - name: Create ansible file
file: file:
path: "{{ test_file }}" path: "{{ test_file }}"

View file

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