Examples on how to remove files and directories (#57766)
* Docs: file module - adds examples on how to remove files and directories
This commit is contained in:
parent
8dfa376e1c
commit
d4555cbd45
1 changed files with 10 additions and 0 deletions
|
@ -196,6 +196,16 @@ EXAMPLES = r'''
|
|||
owner: foo
|
||||
group: foo
|
||||
|
||||
- name: Remove file (delete file)
|
||||
file:
|
||||
path: /etc/foo.txt
|
||||
state: absent
|
||||
|
||||
- name: Recursively remove directory
|
||||
file:
|
||||
path: /etc/foo
|
||||
state: absent
|
||||
|
||||
'''
|
||||
RETURN = r'''
|
||||
|
||||
|
|
Loading…
Reference in a new issue