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/a8c3bf73-d257-4bfb-b437-bd2ea9c52395%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
