summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/path_lookups/play.yml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 16:04:21 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 16:04:21 +0000
commit8a754e0858d922e955e71b253c139e071ecec432 (patch)
tree527d16e74bfd1840c85efd675fdecad056c54107 /test/integration/targets/path_lookups/play.yml
parentInitial commit. (diff)
downloadansible-core-8a754e0858d922e955e71b253c139e071ecec432.tar.xz
ansible-core-8a754e0858d922e955e71b253c139e071ecec432.zip
Adding upstream version 2.14.3.upstream/2.14.3upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/integration/targets/path_lookups/play.yml')
-rw-r--r--test/integration/targets/path_lookups/play.yml49
1 files changed, 49 insertions, 0 deletions
diff --git a/test/integration/targets/path_lookups/play.yml b/test/integration/targets/path_lookups/play.yml
new file mode 100644
index 0000000..233f972
--- /dev/null
+++ b/test/integration/targets/path_lookups/play.yml
@@ -0,0 +1,49 @@
+- name: setup state
+ hosts: localhost
+ gather_facts: false
+ tasks:
+ - file: path={{playbook_dir}}/files state=directory
+ - file: path={{playbook_dir}}/roles/showfile/files state=directory
+ - copy: dest={{playbook_dir}}/roles/showfile/files/testfile content='in role files'
+ - copy: dest={{playbook_dir}}/roles/showfile/testfile content='in role'
+ - copy: dest={{playbook_dir}}/roles/showfile/tasks/testfile content='in role tasks'
+ - copy: dest={{playbook_dir}}/files/testfile content='in files'
+ - copy: dest={{playbook_dir}}/testfile content='in local'
+
+- import_playbook: testplay.yml
+ vars:
+ remove: nothing
+ role_out: in role files
+ play_out: in files
+
+- import_playbook: testplay.yml
+ vars:
+ remove: roles/showfile/files/testfile
+ role_out: in role
+ play_out: in files
+
+- import_playbook: testplay.yml
+ vars:
+ remove: roles/showfile/testfile
+ role_out: in role tasks
+ play_out: in files
+
+- import_playbook: testplay.yml
+ vars:
+ remove: roles/showfile/tasks/testfile
+ role_out: in files
+ play_out: in files
+
+- import_playbook: testplay.yml
+ vars:
+ remove: files/testfile
+ role_out: in local
+ play_out: in local
+
+- name: cleanup
+ hosts: localhost
+ gather_facts: false
+ tasks:
+ - file: path={{playbook_dir}}/testfile state=absent
+ - file: path={{playbook_dir}}/files state=absent
+ - file: path={{playbook_dir}}/roles/showfile/files state=absent