win_tempfile – Creates temporary files and directories¶
- Creates temporary files and directories.
- For non-Windows targets, please use the tempfile module instead.
- tempfile – Creates temporary files and directories
- The official documentation on the tempfile module.
- name: Create temporary build directory win_tempfile: state: directory suffix: build - name: Create temporary file win_tempfile: state: file suffix: temp
Common return values are documented here, the following are the fields unique to this module:
The absolute path to the created file or directory.