summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/file/tasks/initialize.yml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/file/tasks/initialize.yml')
-rw-r--r--test/integration/targets/file/tasks/initialize.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/integration/targets/file/tasks/initialize.yml b/test/integration/targets/file/tasks/initialize.yml
new file mode 100644
index 0000000..ad9f664
--- /dev/null
+++ b/test/integration/targets/file/tasks/initialize.yml
@@ -0,0 +1,15 @@
+#
+# Cleanup the output dir and recreate it for the tests to operate on
+#
+- name: Cleanup the output directory
+ file:
+ dest: '{{ remote_tmp_dir_test }}'
+ state: 'absent'
+
+- name: Recreate the toplevel output dir
+ file:
+ dest: '{{ remote_tmp_dir_test }}'
+ state: 'directory'
+
+- name: prep with a basic file to operate on
+ copy: src=foo.txt dest={{output_file}}