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:
Gabor Szabo 2019-06-18 17:07:31 +03:00 committed by Alicia Cozine
parent 8dfa376e1c
commit d4555cbd45

View file

@ -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'''