Create prefix of file using ansible.builtin.tempfile (#82209)

Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
pull/82230/head
Aditya Putta 6 months ago committed by GitHub
parent 8825e60add
commit dbddabce9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -67,6 +67,12 @@ EXAMPLES = """
suffix: temp
register: tempfile_1
- name: Create a temporary file with a specific prefix
ansible.builtin.tempfile:
state: file
suffix: txt
prefix: myfile_
- name: Use the registered var and the file module to remove the temporary file
ansible.builtin.file:
path: "{{ tempfile_1.path }}"

Loading…
Cancel
Save