Added ANSIBLE_KEEP_REMOTE_FILES but nothing happens

311 views
Skip to first unread message

Tennis Smith

unread,
Sep 30, 2014, 4:30:50 PM9/30/14
to ansible...@googlegroups.com
Hi,

This is in reference to a CentOS 6.5 host using ansible as a vagrant provisioner.

I added "export ANSIBLE_KEEP_REMOTE_FILES=1" to /etc/profile.d/ansible_debug.sh so that all users would pick up the env var.  

However, after running ansible, there aren't any files in /home/vagrant/.ansible directory.   There also isn't a ".ansible" dir in /root either.  

This environment var is definitely getting set because both the "vagrant" user and "root" return the correct value when I execute "echo $ANSIBLE_KEEP_REMOTE_FILES".

What am I missing?

-T

Michael DeHaan

unread,
Oct 1, 2014, 8:19:26 AM10/1/14
to ansible...@googlegroups.com
That parameter needs to be set on the control machine, not the remote.

I suspect that's what's happening to you, perhaps?



--
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/058b4949-93c0-45ff-9b3f-f0a72176beb5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tennis Smith

unread,
Oct 1, 2014, 9:16:51 AM10/1/14
to ansible...@googlegroups.com

Ah! Thank you. 
-T

Tennis Smith

unread,
Oct 1, 2014, 11:21:59 AM10/1/14
to ansible...@googlegroups.com
FYI.  I submitted a doc update.
-T

On Wednesday, October 1, 2014 7:19:26 AM UTC-5, Michael DeHaan wrote:
Reply all
Reply to author
Forward
0 new messages