# Launch template in another template

**URL:** <https://forum.ansible.com/t/launch-template-in-another-template/31682>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [November 19, 2019, 10:58am UTC](https://forum.ansible.com/t/launch-template-in-another-template/31682 "2019-11-19T10:58:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![michal.misiak](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@michal.misiak](https://forum.ansible.com/u/michal.misiak)\
**Post date:** [November 19, 2019, 10:58am UTC](https://forum.ansible.com/t/launch-template-in-another-template/31682/1 "2019-11-19T10:58:23Z")

</div>

Hello everyone,

I have a playbook which I check a lots of parameters of many systems and next I would like to send result of playbook to CSV file. When I used Ansible in console mode, I send result of playbook to file via stream and next I used Python script to parse playbook result to CSV file for example:

ansible-playbook my\_playbook.yml \>\> result\_file

python my\_parse\_script.py result\_file

In AWX I could do my\_playbook.yml in one template and next get result\_file from completed job to parse script and that is work. But it will be my everydays raport from systems status and I need automation this task.

I would like used AWX to automation but I don’t know how send result of one job to another template. My idea is launch template (playbook) in another and save result files in local path on system or network path via NFS or antother. Part of my script is:

tasks:

- name: Check Systems  
shell: ‘ansible-playbook /tmp/my\_playbook.yml \> /tmp/result\_file’

- name: Parse result file  
shell: ‘phyton /tmp/my\_parse\_script.py /tmp/result\_file’

That is work, but when AWX do Check Systems task, I receive information that Inventory is empty. So, my question is: How can I used Inventory from AWX in playbook inside another playbook? Or how can I join my\_playbook.yml result with parse to csv result file in one template in AWX?

Thank you,  
Michał
