Examples on how to remove files and directories (#57766)

* Docs: file module - adds examples on how to remove files and directories
pull/58005/head
Gabor Szabo 6 years ago committed by Alicia Cozine
parent 8dfa376e1c
commit d4555cbd45

@ -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…
Cancel
Save