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:
parent
c6733cc1a7
commit
033c77a13b
1 changed files with 4 additions and 0 deletions
|
@ -3,6 +3,8 @@
|
||||||
connection: local
|
connection: local
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
tasks:
|
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/files/testfile content='in role files'
|
||||||
- copy: dest={{playbook_dir}}/roles/showfile/tasks/testfile content='in role tasks'
|
- copy: dest={{playbook_dir}}/roles/showfile/tasks/testfile content='in role tasks'
|
||||||
- copy: dest={{playbook_dir}}/roles/showfile/testfile content='in role'
|
- copy: dest={{playbook_dir}}/roles/showfile/testfile content='in role'
|
||||||
|
@ -58,3 +60,5 @@
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
tasks:
|
tasks:
|
||||||
- file: path={{playbook_dir}}/testfile state=absent
|
- file: path={{playbook_dir}}/testfile state=absent
|
||||||
|
- file: path={{playbook_dir}}/files state=absent
|
||||||
|
- file: path={{playbook_dir}}/roles/files state=absent
|
||||||
|
|
Loading…
Add table
Reference in a new issue