Re: [ansible-project] set_fact on 'meta' playbook

2014-07-24 Thread Michael DeHaan
Well... sort of, not really. What happens when you "when" a role, it applies a "when" as the first condition of every task in the role. So I suspect you have applied the "when" to your "set_fact" :) All the "is_executed" stuff is generally non-idiomatic, the goal of a playbook is to allow repea

[ansible-project] set_fact on 'meta' playbook

2014-07-24 Thread Michael Dur
I have a role who's sole purpose is as a meta playbook. It has a bunch of includes in meta/main.yml: allow_duplicates: no dependencies: - { role: feature/zypper, when: "common_has_executed is defined" } - { role: feature/rc.firewall, when: "common_has_executed is defined" } - { role: base/bas