hi,
say i have in hosts file 2 nodes.
[nodes]
server1
server2
in a playbook, we do some loop for tasks.
- hosts: nodes
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?