Trond Hindenes wrote:
> This was discussed in another thread. Seems to be a bug in the "include_role" 
> module

I already suspected that and abandoned the separate role and replaced the 
include_role
task with normal tasks.

Thanks for the confirmation.

Ciao, Michael.

> On Friday, May 26, 2017 at 12:14:48 AM UTC+2, Michael Ströder wrote:
> 
>     HI!
> 
>     I want to use the following task (with ansible ansible-2.3.1.0-0.2.rc2):
> 
>     - name: "Install web2ldap on {{ openldap_role }}"
>       include_role:
>         name: web2ldap
>         private: False
>       vars:
>         web_server: "apache2"
>         web2ldap_pip_index_url: "{{ aedir_pip_index_url }}"
>         web2ldap_pip_needs_compiler: "{{ aedir_pip_needs_compiler }}"
>         web2ldap_pip_extra_args: "{{ aedir_pip_extra_args }}"
>       when: openldap_role=="provider"
> 
>     The role sets some vars that are used in later tasks.
> 
>     If I execute the role itself before another role in the same playbook 
> web2ldap's vars
>     are
>     present an can be used. But not with the include_role task above.
> 
>     Any hint what's going on is highly appreciated.
> 
>     Ciao, Michael.

-- 
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/95f0554b-1f5b-3134-1929-7869da629862%40stroeder.com.
For more options, visit https://groups.google.com/d/optout.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to