I believe in the past similar topic came up and it was more of a 
philosophical issue (my memory could be wrong though)


On Monday, July 18, 2016 at 10:22:23 AM UTC-7, Lorenzo Pisani wrote:
>
> Yeah I know you can loop over includes. And that's why I would like to use 
> it for including roles. Currently it doesn't seem possible to do with 
> dependencies.
>
> Any reason you think this wouldn't be implemented? Is it a technical 
> limitation or philosophical?
>
> On Monday, July 18, 2016 at 8:31:31 AM UTC-7, Dmitry Makovey wrote:
>>
>> Don'g believe it is possible nor do I think it will be implemented. 
>> Currently you can get close approximation by using dependencies: 
>> http://docs.ansible.com/ansible/playbooks_roles.html#role-dependencies
>>
>>
>> as far as looping over includes:
>>
>> =====> test.yml 
>> --- 
>>  
>> - hosts: all 
>>   tasks: 
>>       - name: Ping-pong 
>>         ping: 
>>       - { include: "{{ item }}.yml", with_items: [ ping, pong ]} 
>> =====> ping.yml 
>> - name: Ping 
>>   ping: 
>> =====> pong.yml 
>> - name: Pong 
>>   ping:
>>
>>
>> which works as expected - first pings then pongs servers in inventory. 
>>
>>

-- 
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/44f4f676-0e02-4446-bf74-070984a4f89c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to