# Running parallely a playbook on the same host but with different values of the same extra var

**URL:** <https://forum.ansible.com/t/running-parallely-a-playbook-on-the-same-host-but-with-different-values-of-the-same-extra-var/19602>\
**Category:** Ansible Project\
**Created:** [October 24, 2015, 5:03am UTC](https://forum.ansible.com/t/running-parallely-a-playbook-on-the-same-host-but-with-different-values-of-the-same-extra-var/19602 "2015-10-24T05:03:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roger\_Simon](https://avatars.discourse-cdn.com/v4/letter/r/e480ec/32.png) [@Roger\_Simon](https://forum.ansible.com/u/Roger_Simon)\
**Post date:** [October 24, 2015, 5:03am UTC](https://forum.ansible.com/t/running-parallely-a-playbook-on-the-same-host-but-with-different-values-of-the-same-extra-var/19602/1 "2015-10-24T05:03:09Z")

</div>

Hi

I would like if there is a way to run parallely the same playbook on the same host but different values for the same extra var ?

some like

playbook -i inventory/myhost playbook/test.yml --extra-vars “var=value1 var=value2”

many thanks

Regards

Roger SImon

---

<div class="post-metadata">

**Author:** ![igorc](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/igorc/32/5491_2.png) [@igorc](https://forum.ansible.com/u/igorc)\
**Post date:** [October 25, 2015, 12:00am UTC](https://forum.ansible.com/t/running-parallely-a-playbook-on-the-same-host-but-with-different-values-of-the-same-extra-var/19602/2 "2015-10-25T00:00:27Z")

</div>

You mean like:

for i in value1 value2; do playbook -i inventory/myhost playbook/test.yml --extra-vars "var=$i" &; done

---

<div class="post-metadata">

**Author:** ![Roger\_Simon](https://avatars.discourse-cdn.com/v4/letter/r/e480ec/32.png) [@Roger\_Simon](https://forum.ansible.com/u/Roger_Simon)\
**Post date:** [October 26, 2015, 8:16am UTC](https://forum.ansible.com/t/running-parallely-a-playbook-on-the-same-host-but-with-different-values-of-the-same-extra-var/19602/3 "2015-10-26T08:16:34Z")

</div>

yes but is it possible to do it within a playbook

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [October 26, 2015, 3:17pm UTC](https://forum.ansible.com/t/running-parallely-a-playbook-on-the-same-host-but-with-different-values-of-the-same-extra-var/19602/4 "2015-10-26T15:17:50Z")

</div>

define the same host with diff inventory\_hostnames, assigne the values  
to the same host var.

---

<div class="post-metadata">

**Author:** ![Roger\_Simon](https://avatars.discourse-cdn.com/v4/letter/r/e480ec/32.png) [@Roger\_Simon](https://forum.ansible.com/u/Roger_Simon)\
**Post date:** [October 30, 2015, 7:06am UTC](https://forum.ansible.com/t/running-parallely-a-playbook-on-the-same-host-but-with-different-values-of-the-same-extra-var/19602/5 "2015-10-30T07:06:14Z")

</div>

many thanks  
it work fine
