[ansible-project] Re: Enabling delegate_to on include_role via block

2019-05-04 Thread Tim Diels
Analog for tags it turns out that: - block: - include_role: name: myrole tags: mytag will apply the tag to tasks inside the role, its dependencies, roles that it includes/imports. Is this too a feature? The block trick also works for include_tasks and import_tasks

[ansible-project] Re: Enabling delegate_to on include_role via block

2019-05-04 Thread Tim Diels
By delegating the included role I mean delegating the tasks inside the role and any more included/imported by that role or even tasks of roles the role depends on (I tested this on ansible 2.7.10). -- You received this message because you are subscribed to the Google Groups "Ansible Project" g

[ansible-project] Enabling delegate_to on include_role via block

2019-05-04 Thread Tim Diels
Hi, I noticed that while: - include_role: name: myrole delegate_to: somehost will not delegate the included role, this will: - block: - include_role: name: myrole delegate_to: somehost Is this by design, i.e. I may rely on it, or is this a fluke