improve usage example of tempfile module (#47933)

* Show in example how to use file created by tempfile module
This commit is contained in:
Tomáš Pospíšek 2018-11-29 23:24:58 +01:00 committed by Alicia Cozine
parent 73348ae32d
commit 434c421675

View file

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