-
-
Save shinnya/927067ccd096191bae3da526975a2cfa to your computer and use it in GitHub Desktop.
Create a temp dir cross-platform in ansible
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: create a local temp directory | |
local_action: | |
module: command mktemp -d "{{ lookup('env', 'TMPDIR') | default('/tmp/') }}ansible.XXXX" | |
register: mktemp_output |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment