It was a typo, even like that only the first one is executed.

Regards

A sábado, 23/02/2019, 15:22, BHARATHI DURAI RAJ <cad.bhara...@gmail.com>
escreveu:

> Try this one
>
> - name: task with var1
>   include_tasks: external.yaml
>   vars:
>     my_var: var1
>
> - name: task with var2
>   include_tasks: external.yaml
>   vars:
>     my_var: var2
>
> On Saturday, 23 February 2019 20:27:12 UTC+5:30, Paulo Silva wrote:
>>
>> Hi,
>>
>> Is it possible do to something like this inside a role?
>>
>> - name: task with var1
>>   include_tasks: external.yaml
>>   vars:
>>     my_var=var1
>>
>> - name task with var2
>>   include_tasks: external.yaml
>>   vars:
>>     my_var=var2
>>
>> I'm no getting any error but it appears that only the first include_tasks
>> is used, switching to import_tasks as the same behavior.
>>
>> Is is expected? Any other to achieve this?
>>
>> Thanks
>>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/dd2b9c97-e819-4b7c-8388-5f4a01cf9d2c%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/dd2b9c97-e819-4b7c-8388-5f4a01cf9d2c%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAHJdQrk9K8GpH80uwUL8KLnO6GEqHcrVNB1K_BN8yOg4QpWjNg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to