improve usage example of tempfile module (#47933)

* Show in example how to use file created by tempfile module
pull/41579/head
Tomáš Pospíšek 6 years ago committed by Alicia Cozine
parent 73348ae32d
commit 434c421675

@ -55,6 +55,13 @@ EXAMPLES = """
tempfile:
state: file
suffix: temp
register: tempfile_1
- name: use the registered var and the file module to remove the temporary file
file:
path: "{{ tempfile_1.path }}"
state: absent
when: tempfile_1.path is defined
"""
RETURN = '''

Loading…
Cancel
Save