hi,

say i have in hosts file 2 nodes.

[nodes]
server1
server2

in a playbook, we do some loop for tasks.

- hosts: nodes
  <some task>
  with_items : ['apple','banana']

ansible will run it like in the below order:

server1 : apple
server2: apple
server1: banana
server2: banana


what if i want to run in this order?

server1: apple
server1: banana
server2: apple
server2: banana

Is there a good approach for this?

-- 
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/8e47cf03-93ba-4bf0-a859-3f8cd6cbc5a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to