Hi all,
Hoping to get some feedback and help here as I am lost on this one…
Issue:
When running the below code through Tower:
- name: “Copy cert file to target host”
become: yes
copy:
src: “/tmp/my.jks”
dest: “{{ mule_home }}/certs/”
owner: serviceaccountuser
group: serviceaccountgroup
I get the following error:
“msg”: “Could not find or access ‘/tmp/apiint_medica_com.jks’ on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option”
When I run the same task on the same tower execution node via the CLI it works no problem.
I’ve tried using delegate_to as well to ensure force find of the file on the specific node in question and still no luck.
I also used the find module, and the find module can find the file with no problems.
I am at a loss of what the problem here his when the same code works on the CLI but fails when ran through Tower.
Any thoughts?
Thanks!
Tom