# Can't execute 2 plays in a playbook in ansible-tower

**URL:** <https://forum.ansible.com/t/cant-execute-2-plays-in-a-playbook-in-ansible-tower/24258>\
**Category:** Ansible Project\
**Created:** [April 20, 2017, 6:30am UTC](https://forum.ansible.com/t/cant-execute-2-plays-in-a-playbook-in-ansible-tower/24258 "2017-04-20T06:30:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nmath](https://avatars.discourse-cdn.com/v4/letter/n/e99b99/32.png) [@nmath](https://forum.ansible.com/u/nmath)\
**Post date:** [April 20, 2017, 6:30am UTC](https://forum.ansible.com/t/cant-execute-2-plays-in-a-playbook-in-ansible-tower/24258/1 "2017-04-20T06:30:48Z")

</div>

Hi,

I have a playbook which contains 2 plays, one for installing a server (with static IP set) and another to install & configure DNS in this server.  
For an example:  
**setupdns.yml**

#play 1

**# Installation of DNS VM**  
**- hosts: host1**  
**tasks:**  
**- name: install DNS server**  
**command: \>**

**#play2**  
**#install and configure DNS**

**- hosts: dns\_vm → this is the VM which was installed in the above mentioned play**  
**tasks:**  
**- name: configure DNS server**

When I trigger a job for a template containing this playbook on ansible-tower, the tower executes the play 1 (installation of VM) and exits. It neither throws an error nor attempts to execute the following play.

Is there a setting in Ansible-tower that puts such a restriction.

Regards,  
Nagaraj

---

<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:** [April 20, 2017, 5:14pm UTC](https://forum.ansible.com/t/cant-execute-2-plays-in-a-playbook-in-ansible-tower/24258/2 "2017-04-20T17:14:07Z")

</div>

For tower suport pleas go to [https://access.redhat.com/support/](https://access.redhat.com/support/)
