# copy module failing  path has wildcard ?????

**URL:** <https://forum.ansible.com/t/copy-module-failing-path-has-wildcard/33557>\
**Category:** Ansible Project\
**Created:** [August 6, 2020, 2:14am UTC](https://forum.ansible.com/t/copy-module-failing-path-has-wildcard/33557 "2020-08-06T02:14:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sai\_kumar](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@sai\_kumar](https://forum.ansible.com/u/sai_kumar)\
**Post date:** [August 6, 2020, 2:14am UTC](https://forum.ansible.com/t/copy-module-failing-path-has-wildcard/33557/1 "2020-08-06T02:14:45Z")

</div>

Hi,

I am trying to copy a file from one location to other with copy module, on remote server

/puppeteer/.local-chromium/linux-782078/chrome-linux to /usr/local/sbin

linux.chrom\_dir = /puppeteer/.local-chromium/linux-782078/chrome-linux

source file: chrome\_sandbox  
dest file: chrome-devel-sandbox

- name: Copy chrome\_sandbox to sbin directory  
copy:  
src: “{{ linux.chrom\_dir }}/chrome\_sandbox”  
dest: /usr/local/sbin/chrome-devel-sandbox  
remote\_src: yes  
owner: root  
group: root  
mode: ‘4755’

if i changed the linux-782078 to linux-???,

Ansible terminating with path not found

fatal: [centos]: FAILED! =\> {“changed”: false, “msg”: “Source /puppeteer/.local-chromium/linux-???/chrome-linux/chrome\_sandbox not found”}

---

<div class="post-metadata">

**Author:** ![Om\_Prasad\_Reddy\_Sura](https://avatars.discourse-cdn.com/v4/letter/o/6f9a4e/32.png) [@Om\_Prasad\_Reddy\_Sura](https://forum.ansible.com/u/Om_Prasad_Reddy_Sura)\
**Post date:** [August 6, 2020, 2:50am UTC](https://forum.ansible.com/t/copy-module-failing-path-has-wildcard/33557/2 "2020-08-06T02:50:34Z")

</div>

It doesn’t find the directory so failed. You may can define that as a variable and try.

---

<div class="post-metadata">

**Author:** ![sai\_kumar](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@sai\_kumar](https://forum.ansible.com/u/sai_kumar)\
**Post date:** [August 10, 2020, 10:32pm UTC](https://forum.ansible.com/t/copy-module-failing-path-has-wildcard/33557/3 "2020-08-10T22:32:08Z")

</div>

Hi Om,

The linux-782078, in the path created during the installation of puppeteer in previous step. It may change when there is a version update.

Hence i need to check and the version prior to run the play book. instead number if mentioned wildcard characters, I can simply run the playbook and no need to update the playbook every time.

Thanks  
HARASAI
