# Job to save cisco config  is OK, but there are no files in directory

**URL:** <https://forum.ansible.com/t/job-to-save-cisco-config-is-ok-but-there-are-no-files-in-directory/35900>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [October 20, 2021, 5:45am UTC](https://forum.ansible.com/t/job-to-save-cisco-config-is-ok-but-there-are-no-files-in-directory/35900 "2021-10-20T05:45:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![user97](https://avatars.discourse-cdn.com/v4/letter/u/57b2e6/32.png) [@user97](https://forum.ansible.com/u/user97)\
**Post date:** [October 20, 2021, 5:45am UTC](https://forum.ansible.com/t/job-to-save-cisco-config-is-ok-but-there-are-no-files-in-directory/35900/1 "2021-10-20T05:45:27Z")

</div>

Hello everyone,

AWX 19.4.0 in minikube v1.23.1

Playbook code is

- name: Get running-config and save it  
ios\_config:  
backup: yes  
backup\_options:

filename: “{{ ansible\_net\_hostname }}\_{{ ansible\_host }}.cfg”  
dir\_path: …/cisco/backup/{{ ansible\_net\_hostname }}/{{ date.stdout }}_at_{{ time.stdout }}

TASK [Get running-config and save it] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*14:58:54

30  
changed: [IL-SW-001] =\> {“backup\_path”: “…/cisco/backup/IL-SW-001/2021-Oct-20\_at\_04:58/IL-SW-001\_10.1.21.5.cfg”, “changed”: true, “date”: “2021-10-20”, “time”: “04:58:57”}

Im pasted pwd command to check path - its OK

---

<div class="post-metadata">

**Author:** ![ffirg](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/ffirg/32/10029_2.png) [@ffirg](https://forum.ansible.com/u/ffirg)\
**Post date:** [October 21, 2021, 9:06am UTC](https://forum.ansible.com/t/job-to-save-cisco-config-is-ok-but-there-are-no-files-in-directory/35900/2 "2021-10-21T09:06:28Z")

</div>

The job is running inside a mutable container, so it’s succesfully running the module and creating the output, but the container is then destroyed after the automation run. You need to store the file somewhere for persistence outside the container.

---

<div class="post-metadata">

**Author:** ![Ajay\_Oberoi](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@Ajay\_Oberoi](https://forum.ansible.com/u/Ajay_Oberoi)\
**Post date:** [February 22, 2022, 5:47am UTC](https://forum.ansible.com/t/job-to-save-cisco-config-is-ok-but-there-are-no-files-in-directory/35900/3 "2022-02-22T05:47:55Z")

</div>

How to save config on remote location (storage server)

---

<div class="post-metadata">

**Author:** ![jowestco](https://avatars.discourse-cdn.com/v4/letter/j/85f322/32.png) [@jowestco](https://forum.ansible.com/u/jowestco)\
**Post date:** [February 23, 2022, 9:05pm UTC](https://forum.ansible.com/t/job-to-save-cisco-config-is-ok-but-there-are-no-files-in-directory/35900/4 "2022-02-23T21:05:31Z")

</div>

If you have received the file from the device you may be able to send it somewhere using the synchronize module.  
[https://docs.ansible.com/ansible/latest/collections/ansible/posix/synchronize\_module.html](https://docs.ansible.com/ansible/latest/collections/ansible/posix/synchronize_module.html)
