mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-02 11:22:47 +00:00
now creates/removes files/ dir
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user