Hi,

In my project, where we install Splunk with the help of terraform and 
ansible, we ran into some "errors" where we had the ansible playbook run on 
3 hosts installing a search head in Splunk. On of the tasks were to 
configure one of these hosts as a captain. In this case, the task was given 
a list on members of a cluster if the count was 0, otherwise it was given 
an empty list. The problem was that since there is no garantuee that the 
playbooks will finish at the same time, that task got excecuted before the 
other cluster members were up and running (restarting them in some of the 
tasks). So, our solution was to break out that task into a new playbook 
(which seams like half arsed solution in a way, but it worked).

Have I missed something in ansible documentation about some task or module 
that handles this kind of problem? Like a hold_and_wait for condition? 
Is there a way to let playbooks run in parallell with each other, but with 
a condition to continue if all playbooks reach a specific task and then 
continue?

I dont know if this was the best explanation of the problem but, ask if 
there is any uncertanties in what I mean!

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/b8ea3eee-59c5-4001-a571-77780099be15%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to