tempfile

Collection: builtin

Full Name: parallax.builtin.tempfile

Aliases: ansible.builtin.tempfile, tempfile

Synopsis

Manage tempfile

Parameters

NameTypeRequiredDefaultDescription
statestringfileWhether to create file or directory Choices: directory, file
pathstringLocation where temporary file or directory should be created
prefixstringansible.Prefix of file/directory name
suffixstringSuffix of file/directory name

Example

- name: Example tempfile task
  tempfile:
    state: directory
    path: <your_path>