Group vars can sit next to your inventory or next to your playbook. Looks
like your current groupvars are evaluated because they sit next to yout
root-dir playbooks.

You can try to put them next to your inventory so that they'll be evaluated
for every pkaybook that's run with that inventory.

On Fri, Jun 26, 2015, 18:03 James Morgan <[email protected]> wrote:

> Hi,
>
> Thanks for the info. I hadn't looked at those configs, though we can only
> change the configuration on certain environments.
>
> My layout is pretty straightforward
>
> .
> ├── group_vars
> │   └── all.yml
> └── roles
> │   ├── roleA
> │   ├── roleB
> │   └── shared_roles
> │       ├── roleC
> │       └── roleD
> ├── playbook1.yml  <---- these pick up the group_vars
> ├── playbook2.yml
> ├── playbook3.yml
> ├── playbook_sub_dir
> │   ├── playbook4.yml  <---- these don't pick up the group_vars
> │   ├── playbook5.yml
> │   └── playbook6.yml
>
> I'll try and knock together an example. I can't include the actual project
> as there is a fair amount of sensitive information...
>
> The issue is just with the playbooks in the sub directories. I can get
> them to hit the roles by referencing them with ../ its just the group_vars
> that aren't getting picked up
>
> Im just looking to organise the playbooks as im starting to get a lot in
> the root directory
>
> Thanks
>
> James
>
> --
> 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/Kmv-TXIMDA0/unsubscribe.
> To unsubscribe from this group and all its topics, 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/9a1cdee4-b807-42ea-beb9-d86db7abf148%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/9a1cdee4-b807-42ea-beb9-d86db7abf148%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 [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/CAO0%3DbmHxbr6MecYPx5mOghrr_4hKmyuA9%3DCW5ed0aQAD7BTMrg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to