Added ANSIBLE_KEEP_REMOTE_FILES but nothing happens

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

That parameter needs to be set on the control machine, not the remote.

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

Ah! Thank you.-T

FYI. I submitted a doc update.
-T