many ways:

- since i normally have a counter on servers 'app01 -app04' you can do
a mod 2 on the server id and put one address or the other depending on
the result.

- you can run the mod2 vs the position of the server in the group it belongs in.

- you can create 2 groups and split the servers manually, each group
gets a diff db server assigned as config_server variable and use that
(in case you want to manually distribute them).

- use random assignment on each server, it should end up at a 50%
distribution, but it can be skewed, specially with small numbers.

- use mod2 on the last octet on the server IP (assumes even
distribution in the subnets).

etc

-- 
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/CAJ5XC8%3D8B%3DUr_X1aYFvhV12ZXdjjrZrU%3DmE72TXayHv0i%3D1E0w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to