How to stop Ansible from cleaning up temporary files?

62 views
Skip to first unread message

Howard Guo

unread,
Apr 25, 2016, 8:11:12 AM4/25/16
to Ansible Project
Hello!

I am debugging an Ansible playbook that throws an obscure error, the command from "-vvvv" output looks totally sane, but the SSH command does not carry useful information, it only invokes a temporary script locaed in ~/.ansible/tmp.

Unfortunately, when Ansible comes back with the error, ~/.ansible/tmp has already been cleaned up.

How to stop Ansible from cleaning up the tmp directory for this case?

Thanks.

Regards,
Howard

Matt Martz

unread,
Apr 25, 2016, 8:35:24 AM4/25/16
to ansible...@googlegroups.com
ANSIBLE_KEEP_REMOTE_FILES=1 ansible-playbook -vvvv ...
--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/ba49c9d9-3f2a-4a09-bba6-f4388b610de6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Matt Martz
@sivel
sivel.net

Reply all
Reply to author
Forward
0 new messages