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.
