tempfile
Collection: builtin
Full Name: parallax.builtin.tempfile
Aliases: ansible.builtin.tempfile, tempfile
Synopsis
Manage tempfile
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| state | string | file | Whether to create file or directory Choices: directory, file | |
| path | string | Location where temporary file or directory should be created | ||
| prefix | string | ansible. | Prefix of file/directory name | |
| suffix | string | Suffix of file/directory name |
Example
- name: Example tempfile task
tempfile:
state: directory
path: <your_path>