# Trouble with copy module

**URL:** <https://forum.ansible.com/t/trouble-with-copy-module/34669>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [February 23, 2021, 1:56am UTC](https://forum.ansible.com/t/trouble-with-copy-module/34669 "2021-02-23T01:56:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oleg\_Kunitsyn](https://avatars.discourse-cdn.com/v4/letter/o/e5b9ba/32.png) [@Oleg\_Kunitsyn](https://forum.ansible.com/u/Oleg_Kunitsyn)\
**Post date:** [February 23, 2021, 1:56am UTC](https://forum.ansible.com/t/trouble-with-copy-module/34669/1 "2021-02-23T01:56:53Z")

</div>

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]

---

<div class="post-metadata">

**Author:** ![Oleg\_Kunitsyn](https://avatars.discourse-cdn.com/v4/letter/o/e5b9ba/32.png) [@Oleg\_Kunitsyn](https://forum.ansible.com/u/Oleg_Kunitsyn)\
**Post date:** [February 23, 2021, 10:36am UTC](https://forum.ansible.com/t/trouble-with-copy-module/34669/2 "2021-02-23T10:36:35Z")

</div>

trouble reply with synchronize

fatal: [host3]: FAILED! =\> {“changed”: false, “cmd”: “/usr/bin/rsync --delay-updates -F --compress --archive --rsh=/usr/bin/ssh -S none -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null --out-format=\<\>%i %n%L /opt/jdk-7u21-linux-x64.rpm [root@172.17.229.48](mailto:root@172.17.229.48):/opt/”, “msg”: “Warning: Permanently added ‘172.17.229.48’ (ECDSA) to the list of known hosts.\r\nrsync: link\_stat "/opt/jdk-7u21-linux-x64.rpm" failed: No such file or directory (2)\nrsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1189) [sender=3.1.3]\n”, “rc”: 23}

fatal: [host2]: FAILED! =\> {“changed”: false, “cmd”: “/usr/bin/rsync --delay-updates -F --compress --archive --rsh=/usr/bin/ssh -S none -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null --out-format=\<\>%i %n%L /opt/jdk-7u21-linux-x64.rpm [root@172.17.229.49](mailto:root@172.17.229.49):/opt/”, “msg”: “Warning: Permanently added ‘172.17.229.49’ (ECDSA) to the list of known hosts.\r\nrsync: link\_stat "/opt/jdk-7u21-linux-x64.rpm" failed: No such file or directory (2)\nrsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1189) [sender=3.1.3]\n”, “rc”: 23}

changed: [host5]

changed: [host1]

changed: [host4]

вторник, 23 февраля 2021 г. в 04:56:53 UTC+3, Oleg Kunitsyn:

---

<div class="post-metadata">

**Author:** ![Oleg\_Kunitsyn](https://avatars.discourse-cdn.com/v4/letter/o/e5b9ba/32.png) [@Oleg\_Kunitsyn](https://forum.ansible.com/u/Oleg_Kunitsyn)\
**Post date:** [February 23, 2021, 5:15pm UTC](https://forum.ansible.com/t/trouble-with-copy-module/34669/3 "2021-02-23T17:15:21Z")

</div>

Problem resolved.  
IP conflict.

вторник, 23 февраля 2021 г. в 13:36:35 UTC+3, Oleg Kunitsyn:
