mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-11 23:25:28 +01:00
Fix create working directory before test
Signed-off-by: Hideki Saito <saito@fgrep.org>
This commit is contained in:
parent
b1a15490b9
commit
75abaa57f4
2 changed files with 12 additions and 2 deletions
|
|
@ -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 }}"
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue