Hello,
I'm having a problem where a particular task is failing when I use
delegate_to. The problem is I'm also setting ansible_remote_tmp to a
specific directory for the target systems. However, it appears that when I
use delegate_to: local, a local connection is setup and it wants to use the
ansible_remote_tmp directory. However, that directory name does not exist
on the local server. How to do I get around this??
Here is the snippet from the playbook where the playbook fails:
- name: Calculate md5sum from local file
stat:
path: "{{ src_dir }}/{{ qcow_file_name }}"
get_checksum: yes
checksum_algorithm: md5
register: file_stats
run_once: true
delegate_to: localhost
- set_fact: qcow_md5sum="{{ file_stats.stat.checksum }}"
Here is the failure:
fatal: [ptr15-jdm]: UNREACHABLE! => {
"changed": false,
"msg": "Authentication or permission failure. 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\". Failed command was: ( umask 77 && mkdir -p \"` echo
/var/third-party/.ansible/tmp/ansible-tmp-1545258506.72-123539723643648 `\"
&& echo ansible-tmp-1545258506.72-123539723643648=\"` echo
/var/third-party/.ansible/tmp/ansible-tmp-1545258506.72-123539723643648 `\"
), exited with result 1",
"unreachable": true
}
Thanks
Al
--
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/bb4f6dde-1ade-4110-be38-bce79bb52b7e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.