Many thanks for this. I like the idea of a “coordinating” role. Regards
Nathan > On 17 Oct 2015, at 10:33, Ivaylo Bratoev <ivaylo.brat...@gmail.com> wrote: > > Hi, > > In Ansible you can't 'call' roles from roles whenever you want - you can just > have dependencies that are executed before your role. What we do in such > cases is to have one orchestration role that doesn't do anything else than > depending on multiple roles in the right order. > Alternatively, you can handle that on a play level by including roles in the > right order and documenting that for your users but this adds a bit of code > duplication and complexity. > > -ibratoev > > On Friday, October 16, 2015 at 4:13:11 PM UTC+3, Nathan Sowatskey wrote: > Hi > > I am working on this role: > > https://github.com/DevOps4Networks/ansible-opendaylight-devtools > > Within which I would like to use this role: > > https://github.com/William-Yeh/ansible-oracle-java > > I have tried adding the role via an include in this file: > > https://github.com/DevOps4Networks/ansible-opendaylight-devtools/blob/master/tasks/main.yml > > To this file: > > https://github.com/DevOps4Networks/ansible-opendaylight-devtools/blob/master/tasks/install_jdk8.yml > > Which has: > > --- > #Use role from: https://github.com/William-Yeh/ansible-oracle-java > roles: > - williamyeh.oracle-java > > vars: > java_version: > 8 > > > > But that ends up saying: > > ERROR: expecting dict; got: roles, error in > /etc/ansible/roles/opendaylight/tasks/install_jdk8.yml > > So, I am left wondering whether this form of role reuse is even possible? > > Any input gratefully received. > > Many thanks > > Nathan > > -- > You received this message because you are subscribed to a topic in the Google > Groups "Ansible Project" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/ansible-project/NjcBXFNZX0c/unsubscribe. > To unsubscribe from this group and all its topics, 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/ea5f2490-0997-425a-a443-784875486ed2%40googlegroups.com. > 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/0F43F3EE-47BA-4AC8-A85C-EB1D7F6C9191%40gmail.com. For more options, visit https://groups.google.com/d/optout.