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
roles:
- rabbitmq
# play 2
- hosts: webservers
gather_facts: no
sudo: yes
strategy: free
roles:
- 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
https://groups.google.com/d/msgid/ansible-project/847ba255-2e3f-8826-0d80-a71f0eb60676%40olstad.com.
For more options, visit https://groups.google.com/d/optout.