On 25 August 2014 19:20, Tomasz Kontusz <[email protected]> wrote:
Hey Tomasz, >>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 >>:) > Oh, it's as idempotent as you can get. But you are right, it's a pretty > useless change notification - you can just put changed_when: no on it Ok, perfect! This does the trick! I like this approach, and I'm going to use it to dynamically create a CentOS6 and a CentOS7 group, and apply roles selectively to them. I'll probably just create separate "firewall_c7" and "firewall_c6" roles. Regards, 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/CANbPJFmtN925RYMfwbikkDSjxDb1hoPMUbXa55JikJ3_HEHd7A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
