Hi,
I've worked around this by adding the following as the last task of the role:
- set_fact: myrole_has_run=true
when: myrole_has_run is not defined
And then in the meta/defaults.yml:
dependencies:
- role: myrole
when: myrole_has_run is not defined
Is there a native way of making sure a role only runs once?
Thanks.
Matt