the same issue happens even I have provided with -K argument:

SSH password:


PLAY [default]
********************************************************************************************************************************************************************************************


TASK [Gathering Facts]
************************************************************************************************************************************************************************************

fatal: [localhost]: 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 /var/tmp `\"&& mkdir \"` echo
/var/tmp/ansible-tmp-1657181023.834322-2338-216353050127500 `\" && echo
ansible-tmp-1657181023.834322-2338-216353050127500=\"` echo
/var/tmp/ansible-tmp-1657181023.834322-2338-216353050127500 `\" ), exited
with result 142, stdout output: Please login as the user \"cloud-user\"
rather than the user \"root\".\n\n", "unreachable": true}


PLAY RECAP
************************************************************************************************************************************************************************************************

localhost                  : ok=0    changed=0    unreachable=1    failed=0
  skipped=0    rescued=0    ignored=0




On Thu, Jul 7, 2022 at 12:14 PM Prady A <[email protected]> wrote:

> While executing the command provide -k option and provide the root
> password or
> Authenticate your localhost.
>
>
> On Thu, Jul 7, 2022 at 14:44, Ashok Reddy <[email protected]> wrote:
>
>> Hi all,
>>
>> I got the following error, while trying to execute ansible playbook:
>>
>> TASK [Gathering Facts]
>> ************************************************************************************************************************************************************************************
>>
>> fatal: [localhost]: 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 /var/tmp `\"&& mkdir \"` echo
>> /var/tmp/ansible-tmp-1657172514.8192306-2106-9375282374437 `\" && echo
>> ansible-tmp-1657172514.8192306-2106-9375282374437=\"` echo
>> /var/tmp/ansible-tmp-1657172514.8192306-2106-9375282374437 `\" ), exited
>> with result 142, stdout output: Please login as the user \"cloud-user\"
>> rather than the user \"root\".\n\n", "unreachable": true}
>>
>> --
>> 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/f2a0e03c-b35f-47ee-afa6-0a1f8b907005n%40googlegroups.com
>> <https://groups.google.com/d/msgid/ansible-project/f2a0e03c-b35f-47ee-afa6-0a1f8b907005n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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/CAEuB3Ap8rvefKQxLXiKkWLSJ2%2BNj%2Brk1SjZ%2Bx6SDFJMy%2Bc2Gqw%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAEuB3Ap8rvefKQxLXiKkWLSJ2%2BNj%2Brk1SjZ%2Bx6SDFJMy%2Bc2Gqw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAKRLcHjW%3DGa3VVyVKyrG07z8L2BDFewh31ZzYJMPQGjQZTvU6g%40mail.gmail.com.

Reply via email to