# Ansible.builtin.copy is not working with AWX 23.8.2

**URL:** <https://forum.ansible.com/t/ansible-builtin-copy-is-not-working-with-awx-23-8-2/4584>\
**Category:** Get Help\
**Tags:** awx\
**Created:** [March 26, 2024, 9:39pm UTC](https://forum.ansible.com/t/ansible-builtin-copy-is-not-working-with-awx-23-8-2/4584 "2024-03-26T21:39:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pablo\_Lencinas](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/pablo_lencinas/32/2697_2.png) [@Pablo\_Lencinas](https://forum.ansible.com/u/Pablo_Lencinas)\
**Post date:** [March 26, 2024, 9:39pm UTC](https://forum.ansible.com/t/ansible-builtin-copy-is-not-working-with-awx-23-8-2/4584/1 "2024-03-26T21:39:26Z")

</div>

Hi Team. I’m using AWX 23.8.2 (docker installation: [awx/tools/docker-compose/README.md at devel · ansible/awx · GitHub](https://github.com/ansible/awx/blob/devel/tools/docker-compose/README.md)). Im trying to create a local file and save it in AWX instance, and I can not find the way to do this. This is the playbook.

- name: IOS CONFIG  
asa\_command:  
commands:  
- show run  
register: output

- name: SAVE IOS CONFIG  
copy:  
content: “{{ output.stdout[0] }}”  
dest: “/etc/ansible/backups/repo\_cisco\_asa\_backup/show\_run\_{{ inventory\_hostname }}.txt”

The playbook using AWX seems to work fine, but I can not find the output file. This task works fine using AWX 17.0.

Do you know where (path location) this AWX version store this file? Can I do this with this new version?

thanks in advance.

---

<div class="post-metadata">

**Author:** ![TheRealHaoLiu](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/therealhaoliu/32/100_2.png) [@TheRealHaoLiu](https://forum.ansible.com/u/TheRealHaoLiu)\
**Post date:** [March 27, 2024, 7:06pm UTC](https://forum.ansible.com/t/ansible-builtin-copy-is-not-working-with-awx-23-8-2/4584/2 "2024-03-27T19:06:23Z")

</div>

In the newer version of AWX (I don’t recall when we started)

Job runs in a “execution environment” container within the tools\_awx\_ container

The execution container does not share the tools\_awx\_ container’s file-system and everything that’s needed to execute the job is streamed into the container

The playbook that you show will create the file in the execution container which will not be persisted on the tools\_awx\_ container (or your host machine)

try this setting out

 ![image](https://us1.discourse-cdn.com/ansible/original/2X/f/f9402b9a26688c7d79f2a3cc8c8e456980181746.jpeg)

(disclaimer: personally haven’t try it out)

also IMPORTANT NOTE: the `/etc/ansible/backups` that you are writing to within `tools_awx_<x>` container is not persisted on your host in anyway so if the container restart you will lose the data

in the docker-compose file you might want to add an extra volume to persist this data (if you want the data to be persisted)
