It's entirely idempotent (which is a confusing word BTW) -- it doesn't make any changes when no changes need to be made.
F(x) = F(F(x)) However, it does return a changed boolean because it doesn't track when the size of the group changes. there's a ticket about that. Attaching a handler to a group_by, however, is very uncommon. On Mon, Aug 25, 2014 at 12:56 PM, Anand Buddhdev <[email protected]> wrote: > On Monday, August 25, 2014, Tomasz Kontusz <[email protected]> > wrote: > > Hi Tomasz, > > Another way to do this is to split your role in two, and have separate >> plays for CentOS 6 and 7. You can still have Ansible detect which host >> should run which play by grouping them with group_by: > > > Thanks for this. I tried it and it also works. It does mean that every > ansible run always shows "changed=1" even if nothing ever changed, because > group_by is not idempotent. This bothers the idempotence purist in me :) > > Anand > > -- > 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/CANbPJF%3DECyU7OWjK2OXBwkKuLRb%3D635i85zM37_qTzF3pvsvVA%40mail.gmail.com > <https://groups.google.com/d/msgid/ansible-project/CANbPJF%3DECyU7OWjK2OXBwkKuLRb%3D635i85zM37_qTzF3pvsvVA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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/CA%2BnsWgy1RwwNdb1-zU2ZFimhVb209ABQmAVTCQKmOWBxDU7ePQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
