# Using awx.awx.export module

**URL:** <https://forum.ansible.com/t/using-awx-awx-export-module/36450>\
**Category:** AWX Project\
**Tags:** aap, awx, ee\
**Created:** [March 16, 2022, 4:52pm UTC](https://forum.ansible.com/t/using-awx-awx-export-module/36450 "2022-03-16T16:52:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Albert\_Short](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@Albert\_Short](https://forum.ansible.com/u/Albert_Short)\
**Post date:** [March 16, 2022, 4:52pm UTC](https://forum.ansible.com/t/using-awx-awx-export-module/36450/1 "2022-03-16T16:52:20Z")

</div>

I have create a playbook to export specific job templates & work flow templates as well as a custom EE.

The playbook seems to work successfully, I however have no idea where the exports actually get saved?

Can someone please tell me where I can find those as I would like to import them into a customers Ansible Automation Platform 2 solution (Ansible Tower), instead of recreating it all again.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Albert\_Short](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@Albert\_Short](https://forum.ansible.com/u/Albert_Short)\
**Post date:** [April 19, 2022, 8:22pm UTC](https://forum.ansible.com/t/using-awx-awx-export-module/36450/2 "2022-04-19T20:22:35Z")

</div>

Still not been able to find where the export is saved? Any ideas, or am i using the module incorrectly?

- name: “netbox testing prefixes”  
connection: local  
hosts: localhost  
gather\_facts: False

tasks:

- name: Export a job template named “My Template” and all Credentials  
awx.awx.export:  
controller\_username: admin  
controller\_password: \*\*\*\*\*\*\*\*  
controller\_host: [http://10](http://10). **.**.\*\*:31189  
validate\_certs: false

---

<div class="post-metadata">

**Author:** ![Seth\_Foster](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@Seth\_Foster](https://forum.ansible.com/u/Seth_Foster)\
**Post date:** [April 20, 2022, 7:26pm UTC](https://forum.ansible.com/t/using-awx-awx-export-module/36450/3 "2022-04-20T19:26:11Z")

</div>

Hi!

awx.awx.export doesn’t save results explicitly, but you can register the output and save it to disk using the copy module, something like

tasks:

- name: Export all assets  
awx.awx.export:  
job\_templates: ‘all’  
projects: ‘all’  
all: True  
register: export\_output

- name: Save export to file  
copy:  
content: “{{ export\_output[‘assets’] }}”  
dest: export.json

Let me know if that is helpful!  
Seth
