# Play ansible playbook with inventory file inside another playbook

**URL:** <https://forum.ansible.com/t/play-ansible-playbook-with-inventory-file-inside-another-playbook/24532>\
**Category:** Ansible Project\
**Created:** [May 21, 2017, 8:09pm UTC](https://forum.ansible.com/t/play-ansible-playbook-with-inventory-file-inside-another-playbook/24532 "2017-05-21T20:09:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mateusz\_Panczyszyn](https://avatars.discourse-cdn.com/v4/letter/m/3da27b/32.png) [@Mateusz\_Panczyszyn](https://forum.ansible.com/u/Mateusz_Panczyszyn)\
**Post date:** [May 21, 2017, 8:09pm UTC](https://forum.ansible.com/t/play-ansible-playbook-with-inventory-file-inside-another-playbook/24532/1 "2017-05-21T20:09:19Z")

</div>

Hi,

I have small problem. I have my own playbook to prepare installation of our product which also using ansible. My playbook is using for download product from repo, unpack, customize some config files and so on. After that I have unpacked and configured product which only need to be executed from ansible (ansible-playbook -i product\_inv product.yml). How to define command/include product\_playbook with product\_inventory to my playbook? I tried by shell command: “ansible-playbook” but I had some problems wifh paths. Is it possible define tasks/role with external inventory file?

Br,

Mateusz
