On 13. okt. 2016 02:50, Nikita Gubenko wrote:
Hello, folks

Is there any possible way to make plays depend on each other? E.g. in the
example below do not start play2 if any of the hosts in play1 failed?

  # play 1
  - hosts: rabbitmq
    gather_facts: no
    sudo: yes
    serial: 1
      - rabbitmq

  # play 2
  - hosts: webservers
    gather_facts: no
    sudo: yes
    strategy: free
      - webservers

You can add "any_errors_fatal: true" to play 1.

Kai Stian Olstad

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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
For more options, visit https://groups.google.com/d/optout.

Reply via email to