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 5 years ago committed by Alicia Cozine
parent 8dfa376e1c
commit d4555cbd45

@ -196,6 +196,16 @@ EXAMPLES = r'''
owner: foo owner: foo
group: 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''' RETURN = r'''

Loading…
Cancel
Save