improve usage example of tempfile module (#47933)
* Show in example how to use file created by tempfile modulepull/4420/head
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…
Reference in New Issue