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

12 views
Skip to first unread message

nm...@cloudsimple.com

unread,
Apr 20, 2017, 10:29:47 AM4/20/17
to Ansible Project
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: >
        <command to install a VM on ESX>

#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
    <steps to install and configure DNS>


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





Brian Coca

unread,
Apr 20, 2017, 1:14:14 PM4/20/17
to Ansible Project
For tower suport pleas go to https://access.redhat.com/support/


----------
Brian Coca
Reply all
Reply to author
Forward
0 new messages