Add this to the host's inventory entry: ansible_remote_tmp=/tmp
On Tue, 3 Jan 2023 at 17:24, Tom Stewart <[email protected]> wrote: > > Using ansible to help manage my collection of raspberry pi's. One in > particular is running an "embedded" version of the OS that doesn't have the > normal temp directory. Is there any way in my inventory file to specify where > the temp directory is for this computer? > > Here's the output I receive when attempting an ad-hoc 'uptime' command: > > eyepi | 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 /root/.ansible/tmp `\"&& mkdir \"` echo > /root/.ansible/tmp/ansible-tmp-1672762692.032167-4139-89985814812145 `\" && > echo ansible-tmp-1672762692.032167-4139-89985814812145=\"` echo > /root/.ansible/tmp/ansible-tmp-1672762692.032167-4139-89985814812145 `\" ), > exited with result 127", > > "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/e6e1c208-f1aa-4807-9bfe-3b0f92ae2565n%40googlegroups.com. -- 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/CAF8BbLaKrz2wesGb%2BFsoSuR5zbacufz5WXMSwNhRwu4yjG3AHw%40mail.gmail.com.
