Hello Team, I am facing issue while running below playbook from ansible server. Getting error like below. I gave small part of the playbook. The intention to use connection: local is I like to perform few tasks from ansible server and like to perform few task on remote server. Which task I like to perform remote server there am using delegate_to action. It was working fine in anisble 2.9.9 version. After upgraded ansible to 2.9.10 am facing this issue. Not sure it is bug in latest version. Could you please help on this issue. Thanks in advance.
TASK [Copy script to remote server] *********************************************************************************************** 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 /home/ansible/.ansible/tmp `\"&& mkdir /home/ansible/.ansible/tmp/ansible-tmp-1597756123.06-13139-115650747168755 && echo ansible-tmp-1597756123.06-13139-115650747168755=\"` echo /home/ansible/.ansible/tmp/ansible-tmp-1597756123.06-13139-115650747168755 `\" ), exited with result 1", "unreachable": true} --- - name : Playbook test hosts: localhost connection: local become_method: sudo tasks: - name: Copy script to remote server copy: src: /oci-playbooks/DBRefresh/files/removedisks.sh dest: /home/ansible/ become: yes delegate_to: 192.168.1.2 -- 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 ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/ac8656e9-066b-4477-b764-36973f24b99ao%40googlegroups.com.