1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

now creates/removes files/ dir

This commit is contained in:
Brian Coca 2015-08-13 09:53:44 -04:00
parent c6733cc1a7
commit 033c77a13b

View file

@ -3,6 +3,8 @@
connection: local
gather_facts: false
tasks:
- file: path={{playbook_dir}}/files state=directory
- file: path={{playbook_dir}}/roles/files state=directory
- copy: dest={{playbook_dir}}/roles/showfile/files/testfile content='in role files'
- copy: dest={{playbook_dir}}/roles/showfile/tasks/testfile content='in role tasks'
- copy: dest={{playbook_dir}}/roles/showfile/testfile content='in role'
@ -58,3 +60,5 @@
gather_facts: false
tasks:
- file: path={{playbook_dir}}/testfile state=absent
- file: path={{playbook_dir}}/files state=absent
- file: path={{playbook_dir}}/roles/files state=absent