1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/integration/targets/file/tasks/initialize.yml
Toshio Kuratomi 17a4553c68 Reorganize and expand the file tests
* Pull the tests for state=link into their own file
* Pull tests for what happens when dest is a directory out
* Expand both of the above sets of tests
2018-05-03 20:20:04 -07:00

15 lines
356 B
YAML

#
# Cleanup the output dir and recreate it for the tests to operate on
#
- name: Cleanup the output directory
file:
dest: '{{ output_dir }}'
state: 'absent'
- name: Recreate the toplevel output dir
file:
dest: '{{ output_dir }}'
state: 'directory'
- name: prep with a basic file to operate on
copy: src=foo.txt dest={{output_file}}