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
On Friday, 3 April 2020 19:35:49 UTC+5:30, mahesh g o wrote:
>
> 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
>
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/f081b6b7-ba85-4f57-a24f-34812ad56cfd%40googlegroups.com.