Hi fellows,

I wrote this inventory.yml file 

---
all:
  hosts:
    webserver1:
      ansible_host: xxx.xxx.xxx
    webserver2:
      ansible_host: xxx.xxx.xxx
    webserver3:
      ansible_host: xxx.xxx.xxx
    dbserver1:
      ansible_host: xxx.xxx.xxx
    dbserver2:
      ansible_host: xxx.xxx.xxx
    vpnserver1:
       ansible_host: xxx.xxx.xxx
    nameserver1:
       ansible_host: xxx.xxx.xxx
    mailserver1:
       ansible_host: xxx.xxx.xxx
    mailserver2:
       ansible_host: xxx.xxx.xxx


children:
    webservers:
      hosts:
        webserver1: xxx.xxx.xxx
        webserver2: xxx.xxx.xxx
        webserver3: xxx.xxx.xxx
    dbservers:
      dbserver1: xxx.xxx.xxx
      dbserver2: xxx.xxx.xxx
    vpnservers:
       vpnserver1: xxx.xxx.xxx
    mailservers:
       mailserver1: xxx.xxx.xxx
       mailserver2: xxx.xxx.xxx
    nameservers:
        nameserver1: xxx.xxx.xxx

When I try this:  
*ansible -vvv  -i inventory.yaml webserver1 -m setup *
I get:






*UNREACHABLE! => {    "changed": false,    "msg": "Failed to create 
temporary directory.In some cases, you may have been able to authenticate 
and did not have permissions on the target directory. Consider changing the 
remote tmp path in ansible.cfg to a path rooted in \"/tmp\", for more error 
information use -vvv. Failed command was: ( umask 77 && mkdir -p \"` echo 
/root/.ansible/tmp `\"&& mkdir \"` echo 
/root/.ansible/tmp/ansible-tmp-1647368810.1744432-79926-217579336494646 `\" 
&& echo ansible-tmp-1647368810.1744432-79926-217579336494646=\"` echo 
/root/.ansible/tmp/ansible-tmp-1647368810.1744432-79926-217579336494646 `\" 
), exited with result 1",    "unreachable": true} *

so I changed the remote tmp path in ansible.cfg 

to 
*/tmp/${USER}/ansible  *

and 

*/home/xxx/.ansible/tmp*


*but it does not work yet. *

*Has anybody an idea how to fix that?*

*Many thanks in advance,*

*Igor*

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-devel/f45fd321-8a8f-4fad-a231-538dbd871fe8n%40googlegroups.com.

Reply via email to