# how to Import  multiple Playbooks into one single playbook

**URL:** <https://forum.ansible.com/t/how-to-import-multiple-playbooks-into-one-single-playbook/32598>\
**Category:** Ansible Project\
**Created:** [April 3, 2020, 2:05pm UTC](https://forum.ansible.com/t/how-to-import-multiple-playbooks-into-one-single-playbook/32598 "2020-04-03T14:05:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mahesh\_g\_o](https://avatars.discourse-cdn.com/v4/letter/m/e9bcb4/32.png) [@mahesh\_g\_o](https://forum.ansible.com/u/mahesh_g_o)\
**Post date:** [April 3, 2020, 2:05pm UTC](https://forum.ansible.com/t/how-to-import-multiple-playbooks-into-one-single-playbook/32598/1 "2020-04-03T14:05:49Z")

</div>

I have 8 playbooks. how do i import all 8 playbooks in 1 playbook.

below is the one of the playbook: which created 4 SVM’s with fcp protocol , I have 7 more playbooks which each creates 4 svm’s with different protocol. I want it to run one after the another.

Playbook 1 which creates 4 svm’s with fcp protocol

- hosts: localhost  
gather\_facts: false  
vars\_files:
- /etc/ansible/group\_vars/host\_vars  
tasks:
- name: Create SVM  
na\_ontap\_svm:  
state: present  
name: “systemic\_fcp\_{{item}}”  
root\_volume: “systemic\_fcp\_aggr8svm{{item}}\_root”  
root\_volume\_aggregate: sti49\_vsim\_ucs100f\_aggr1  
allowed\_protocols: fcp  
root\_volume\_security\_style: mixed  
hostname: “{{ aiqumip }}”  
username: “{{ aiqumusername }}”  
password: “{{ aiqumpassword }}”  
https: false  
with\_sequence: start=1 end=4

---

<div class="post-metadata">

**Author:** ![racke](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/racke/32/4767_2.png) [@racke](https://forum.ansible.com/u/racke)\
**Post date:** [April 3, 2020, 2:09pm UTC](https://forum.ansible.com/t/how-to-import-multiple-playbooks-into-one-single-playbook/32598/2 "2020-04-03T14:09:23Z")

</div>

> I have 8 playbooks. how do i import all 8 playbooks in 1 playbook.
> 
> below is the one of the playbook: which created 4 SVM's with fcp protocol , I have 7 more playbooks which each creates 4  
> svm's with different protocol. I want it to run one after the another.

So what are the differences between the protocols in all your playbooks? It isn't really useful when you post just one  
playbook as example.

Regards  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Racke

---

<div class="post-metadata">

**Author:** ![mahesh\_g\_o](https://avatars.discourse-cdn.com/v4/letter/m/e9bcb4/32.png) [@mahesh\_g\_o](https://forum.ansible.com/u/mahesh_g_o)\
**Post date:** [April 3, 2020, 2:26pm UTC](https://forum.ansible.com/t/how-to-import-multiple-playbooks-into-one-single-playbook/32598/3 "2020-04-03T14:26:08Z")

</div>

Hi,

we will be creating volumes on vservers, so that we can access those volumes based on vserver protocols.

The first playbook i shared is fcp protocol and this is iscsi protocol, similarly i have 6 more protocols. for which i have created playbooks.

currently i am running all 8 playbooks one after the another.

My requirement is : can I one master playbook where i can import all 8 playbooks. instead of 8 playbooks running individually.

i want have 1 playbook which imports all 8 playbooks.

name: vserver create with iscsi protocl  
na\_ontap\_svm:  
state: present  
name: “systemic\_iscsi\_{{item}}”  
root\_volume: “systemic\_iscsi\_aggr8svm{{item}}\_root”  
root\_volume\_aggregate: sti49\_vsim\_ucs100e\_aggr1  
allowed\_protocols: iscsi  
root\_volume\_security\_style: mixed  
hostname: “{{ aiqumip }}”  
username: “{{ aiqumusername }}”  
password: “{{ aiqumpassword }}”  
https: false  
with\_sequence: start=1 end=4
