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
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| state | string | file | Temporary object type | |
| path | string | Parent directory; defaults to the target user temporary directory | ||
| prefix | string | ansible. | Temporary name prefix | |
| suffix | string | Temporary name suffix |
Example
yaml
- name: Allocate a temporary directory
ansible.windows.win_tempfile:
state: directory