Hello all, please i need some help with AWX. (Sorry for my bad English)
My ENVIRONMENT:
AWX version: 17.0.1
AWX install method: docker on linux
Ansible version(on host VM): ansible 2.9.17
Operating System: Centos 7
Web Browser: Mozilla Firefox
My trouble with “copy” module. What could be wrong?
Below are the tasks and the result.
Tasks:
-
name: “Download java distr”
get_url:
dest: “/opt/”
url: “{{ jdk_distrib }}”
validate_certs: no
run_once: True
delegate_to: localhost -
name: “Copy to all other hosts”
copy:
src: “/opt/jdk-{{ jdk_release }}-linux-x64.rpm”
dest: “/opt/”
Result:
TASK [ansible-role-java-tmp : Download java distr] *****************************
Tuesday 23 February 2021 01:08:22 +0000 (0:00:05.061) 0:00:33.438 ******
changed: [host1]
TASK [ansible-role-java-tmp : Copy to all other hosts] *************************
Tuesday 23 February 2021 01:08:51 +0000 (0:00:29.247) 0:01:02.685 ******
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: If you are using a module and expect the file to exist on the remote, see the remote_src option
fatal: [host2]: FAILED! => {“changed”: false, “msg”: “Could not find or access ‘/opt/jdk-7u21-linux-x64.rpm’ on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option”}
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: If you are using a module and expect the file to exist on the remote, see the remote_src option
fatal: [host3]: FAILED! => {“changed”: false, “msg”: “Could not find or access ‘/opt/jdk-7u21-linux-x64.rpm’ on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option”}
changed: [host5]
changed: [host1]
changed: [host4]