PARALLAX

win_tempfile

Create a temporary file or directory

Collection: ansible.windows

Full Name: parallax.windows.win_tempfile

Aliases: ansible.windows.win_tempfile, win_tempfile

Synopsis

Create a temporary file or directory

Parameters

NameTypeRequiredDefaultDescription
statestringfileTemporary object type
pathstringParent directory; defaults to the target user temporary directory
prefixstringansible.Temporary name prefix
suffixstringTemporary name suffix

Example

yaml
- name: Allocate a temporary directory
  ansible.windows.win_tempfile:
    state: directory
Search
    ↑ ↓ move↵ openesc close