In Bash I use mktemp together with trap to always remove the temp dir.

When I use the tempfile module, how do I remove the tempfile, in case of an 
error, which terminates the playbook run?

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/83938e86-f318-41b5-bb97-f641d01cdd22%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to