[servers]
172.16.12.215
[servers:vars]
ansible_user=temproot
ansible_ssh_pass=******
ansible_python_interpreter=/usr/bin/python
ansible_port=8022
still i am getting the same response.:-
ansible all -m ping
172.16.12.215 | 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 ~/.ansible/tmp `\"&& mkdir \"` echo
~/.ansible/tmp/ansible-tmp-1624050122.9-31206-124246621969704 `\" && echo
ansible-tmp-1624050122.9-31206-124246621969704=\"` echo
~/.ansible/tmp/ansible-tmp-1624050122.9-31206-124246621969704 `\" ), exited
with result 1",
"unreachable": true
On Sat, Jun 19, 2021 at 2:30 AM Antony Stone <
[email protected]> wrote:
> On Friday 18 June 2021 at 22:53:26, nitesh shet wrote:
>
> 'i haven't written any playbook , i am just trying to run "ansible all -m
> ping" from shell.'
>
> Okay.
>
> > [root@in-6centos50-dt ansible]# ssh [email protected] -p 8022
> > [email protected]'s password:
>
> On Friday 18 June 2021 at 21:41:25, nitesh shet wrote:
>
> > 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
>
> Your manual SSH was to port 8022; your configuration files says port 22.
>
> Your manual SSH was as user temproot, your configuration file says dummy.
>
> Try modifying these things to be consistent and let us know the outcome.
>
>
> Antony.
>
> --
> There are 10 types of people in the world:
> those who understand binary notation,
> and those who don't.
>
> 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/CAPgfy9WMaaSvYeQWEgpaZ8fenajo-CvvkjctcABoiCUN1TSTnQ%40mail.gmail.com.