This is expected. There is documentation to this effect at https://docs.ansible.com/ansible/latest/porting_guides/porting_guide_2.5.html#dynamic-includes-and-attribute-inheritance
As of Ansible 2.7 see the "apply" argument to include_tasks and include_role to do what you want. On Sat, May 4, 2019 at 3:10 AM Tim Diels <[email protected]> wrote: > 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 that may get > 'fixed' in future releases? > > Best regards, > > Tim > > -- > 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/06d1cc2e-e238-45f9-a670-d8c1109f490e%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/06d1cc2e-e238-45f9-a670-d8c1109f490e%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Matt Martz @sivel sivel.net -- 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/CAD8N0v-cbFePoxHHmpVxd4DOms5b1PZ5Ne%2BCcctn33tYzjZaVQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
