Всем привет, у меня трабла небольшая с Ansible, выявил на AWX проверид локально - подтвердилось, может кто сталкивался?
Окружение:
AWX version: 17.0.1
AWX install method: docker on linux
Ansible version(on host VM): ansible 2.9.17
Operating System(on host VM): Centos 7
Web Browser: Mozilla Firefox
Думаю проблема видна из части тасок и части результата.
Таски:
- 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/"
Результат
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]