Brian Coca can you be more specific ? I'm trying something like the bellow
but I"m stuck, it's deploying all the servers in every run instead of only
a random one ..
{% for host in groups['dbservers'] %}
{% if loop.index % (loop.length + 1) %}
server_address = {{ host }}
{{ loop.index % loop.length + 1 }}
{% endif %}
{% endfor %}
On Saturday, February 20, 2016 at 7:15:27 PM UTC-5, Brian Coca wrote:
>
> you could probably do a mod on the length of the group and assign
> depending on a sequence.
>
>
> random results even out over large numbers but can be very skewed on
> small samples.
>
> ----------
> Brian Coca
>
--
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/fc307bb8-9560-43d0-a33a-713c3a07ca03%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.