Hi

I've got a machine that needs to have remote_tmp set to 
"$HOME/.ansible/tmp". But this gives me issues with the rest of the boxes. 
So the option in the config file says "remote_tmp     = /tmp".

I've tried to set the option on the inventory file for this host only:

commando remote_tmp=$HOME/.ansible/tmp

and also as a host_variable in host_file_dir/host_vars/hostname:

$ cat host_vars/commando 
-rw-rw-r-- 1 ansible ansible 35 Feb 12 10:34 host_vars/commando
---
remote_tmp: $HOME/.ansible/tmp

It does not work:

$ ansible commando -m ping -K
sudo password: 
previous known host file not found
commando | FAILED => Authentication or permission failure.  In some cases, 
you may have been able to authenticate and did not have permissions on the 
remote directory. Consider changing the remote temp path in ansible.cfg to 
a path rooted in "/tmp". Failed command was: mkdir -p 
/tmp/ansible-1392202978.96-158385720428034 
&& chmod a+rx /tmp/ansible-1392202978.96-158385720428034 && echo 
/tmp/ansible-1392202978.96-158385720428034, exited with result 1: mkdir: 
cannot create directory `/tmp/ansible-1392202978.96-158385720428034': 
Permission denied

There's something I'm not doing right, and I'm trusting the more 
experienced crowd here will be able to give me some insight.

PS. Also, if you happen to know why I'm getting the previous "known host 
file not found", that would be great

Thanks


-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to