Hi James, Have you set the ansible configuration file's (ansible.cfg) roles_path default setting? See: https://docs.ansible.com/intro_configuration.html#roles-path
If you are following the best practices documented (https://docs.ansible.com/intro_configuration.html#roles-path), it should be pulling in those group_vars variables, if the host(s) being applied to the plays/playbooks are within the defined groups that contain the variables. Where is the group_vars folder relative to the playbooks that are not "seeing" the variables? To further confirm, please post an example in pastebin. Thanks, Cruz On Thursday, June 25, 2015 at 5:22:43 AM UTC-5, James Morgan wrote: > > Hi, > > This has probably been covered before but I can't find any solutions. > > My project pulls in roles from other projects via Maven. This means that > we can have company wide roles reused. > > This all works fine, all the roles are dropped into a subdirectory in > roles and referenced in the playbooks. > > I would like do something similar with playbooks. Whilst I can reference > roles using ../roles/rolename inside a playbook in a subdirectory > > None of the group_vars that are available to the top level playbooks are > available to the playbook in the subdirectory > > Has anybody solved this or is there a better way of organising playbooks. > > Any help appreciated > > 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 [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/107d7ad1-1f88-4a79-aa8e-a959188db3f1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
