My remote user has sudo permission and I tried changing remote_tmp to
absolute path in remote host as /home/shared/.ansible/tmp
Nothing is working, if I do ssh manually to the remote will work.

On Sat, 19 Jun 2021, 01:21 Antony Stone, <
[email protected]> wrote:

> On Friday 18 June 2021 at 21:41:25, nitesh shet wrote:
>
> > Hi experts,
> > I am unable to ping to my remote servers via ansible.
>
> Do other ansible commands on the same target machine work okay?
>
> >     "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.
>
> What's the definition of your tmp path in ansible.cfg?
>
> > 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",
>
> > 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)
>
> Which is the "default directory"?
>
> > 3.changing the remote_tmp path in ansible.cfg file(not worked)
>
> What did you try changing it to?
>
> > 4.changing log file path which also has 777 permission in ansible.cfg(not
> > worked)
>
> I don't believe logging is a problem here.
>
> > 5.prmitted root login from sshd
>
> Which user are you connecting to the remote machine as?
>
> Antony.
>
> --
> I think broken pencils are pointless.
>
>                                                    Please reply to the
> list;
>                                                          please *don't* CC
> me.
>

-- 
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/CAPgfy9UiHpiPTP%2BRNqHeuOmuFGh5TayZAWDey2_vbbcH8H-Eyw%40mail.gmail.com.

Reply via email to