Hi experts,
I am unable to ping to my remote servers via ansible. Below are how my
inventory file is looks like:-
[servers]
x.y.z
[servers:vars]
ansible_user=dummy
ansible_ssh_pass=dummy
ansible_python_interpreter=/usr/bin/python
ansible_port=22
ansible_become=yes
if i apply ping module using ansible i am getting below error:-
"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 ~/.ansible/tmp `\"&& mkdir \"` echo
~/.ansible/tmp/ansible-tmp-1624045005.71-29459-71519195524962 `\" && echo
ansible-tmp-1624045005.71-29459-71519195524962=\"` echo
~/.ansible/tmp/ansible-tmp-1624045005.71-29459-71519195524962 `\" ), exited
with result 1",
"unreachable": true
}
the method that i followed to overcome this (but not able to):-
1. i had created the .ansible/tmp directory and given 777 permission (not
worked)
2.given 777 permission to default directory of remote(not worked)
3.changing the remote_tmp path in ansible.cfg file(not worked)
4.changing log file path which also has 777 permission in ansible.cfg(not
worked)
5.prmitted root login from sshd
please help me to over come this problem.
my controller node is of centos7 and remote is debian
Thanks,
Nitesh
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/f95a4f06-06a8-4a0f-908d-a5ef57299136n%40googlegroups.com.