I'm getting the exact same issue. When using "when" with "include_role", I
get:
The conditional check 'g' failed. The error was: error while evaluating
conditional (g): 'g' is undefined
On Thursday, January 12, 2017 at 3:05:30 PM UTC-5, Mario Wolff wrote:
>
> Is there something new on this topic?
>
> I'm using some Galaxy roles and i would like to avoid any modification.
> Some of these roles do much more than i need and i would like to do
> something like:
>
> - name: selective tasks from galaxy role
> include_role:
> name: someones.role
> tasks_from: "{{ item }}"
> static: no
> with_items:
> - prereq.yml
> - installa.yml
> - starta.yml
> - testa.yml
>
> Where the role has also install[b-d].yml included from the main.yml
>
> Here i get the already known
>
> ERROR! Could not find specified file in role: {{ item }}
>
> Regards,
> Mario
>
> BTW: $ ansible --version
> ansible 2.2.0.0
>
>
>
--
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/7c82cff8-a3e1-4212-8e6e-04f6b36638cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.