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. For more options, visit https://groups.google.com/d/optout.
