Yes, that I've alredy figured out. But what if I want to group my playbooks 
inside different folders but the group and host vars
should be the same? Is there an option to tell Ansible where to look for those 
folders?

I imagine a dir tree like:

.
├── group_vars
│   ├── group1.yaml
│   └── group2.yaml
├── host_vars
│   ├── host1.yaml
│   ├── host2.yaml
│   └── localhost.yaml
├── group1-playbooks
│   ├── 00-requirements.yaml
│   ├── 01-copy-static-files.yaml
│   └── 99-cleanup.yaml
├── group2-playbooks
│   ├── 00-requirements.yaml
│   ├── 01-copy-static-files.yaml
│   └── 99-cleanup.yaml
└── inventory

Regards,

        Uwe


Am 01.09.2016 um 12:29 schrieb [email protected]:
> It can be inside the same folder as the playbook.
> 
> root
>   -- group_vars/all.yml
>   -- host_vars/some_host.yml
>   -- myPlaybook.yml
> 
> On Thursday, September 1, 2016 at 2:40:10 PM UTC+5:30, Uwe Sauter wrote:
> 
>     Hi all,
> 
>     I'm currently struggling with how to tell Ansible where it can find 
> host_vars and group_vars folders. Is there an environmet
>     variable for it? Does it have to be inside the same folder as the 
> playbook?
> 
>     Regards,
> 
>             Uwe
> 

-- 
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/66e25267-d6a4-bc7c-77f4-af8f1bfdd032%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to