Re: [ansible-project] Subdirectories in host_vars

2019-09-12 Thread Dick Visser
Yup.
I tend to use rolename/vars for things that are rather static.
For instance, a dict of software versions and their checksums, which
will never change.

On Thu, 12 Sep 2019 at 01:24, Peter Kokot  wrote:
>
> Thank you so much for your answer.
>
> Yes, it works correctly as expected. Issue was that I was overriding the 
> variables from the roles incorrectly (roles/something/vars/main.yaml) and 
> should use the roles/something/defaults/main.yaml for that. The host_vars 
> work as expected.
>
> On Thursday, 12 September 2019 00:27:45 UTC+2, Dick Visser wrote:
>>
>> Yes.
>>
>> On Thu, 12 Sep 2019 at 00:11, Peter Kokot  wrote:
>> >
>> > Hello,
>> >
>> > does host_vars directory support subdirectories? So multiple variables can 
>> > be organized in multiple YAML files inside the host subdirectory. For 
>> > example:
>> >
>> > ├─ host_vars/
>> > ├─── hostname_1.tld/
>> > ├─ secrets.yaml
>> > ├─ variables.yaml
>> > ├─── hostname_2.tld/
>> > ├─ secrets.yaml
>> > ├─ other_variables.yaml
>> > └─ ...
>> >
>> > Thank you for possible answers and helping out.
>> >
>> > --
>> > 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...@googlegroups.com.
>> > To view this discussion on the web visit 
>> > https://groups.google.com/d/msgid/ansible-project/be400fbe-9f32-4722-96fa-65735f9b6210%40googlegroups.com.
>>
>>
>>
>> --
>> Dick Visser
>> Trust & Identity Service Operations Manager
>> GÉANT
>
> --
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/6d83c372-035f-42c0-8ab3-794dbb23553d%40googlegroups.com.



-- 
Dick Visser
Trust & Identity Service Operations Manager
GÉANT

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAL8fbwN4jEpxhnaH3%3Da1iq-TMzZRanc0N3Rn1TZQbmDHnnw18g%40mail.gmail.com.


Re: [ansible-project] Subdirectories in host_vars

2019-09-11 Thread Peter Kokot
Thank you so much for your answer.

Yes, it works correctly as expected. Issue was that I was overriding the 
variables from the roles incorrectly (roles/something/vars/main.yaml) and 
should use the roles/something/defaults/main.yaml for that. The host_vars 
work as expected.

On Thursday, 12 September 2019 00:27:45 UTC+2, Dick Visser wrote:
>
> Yes. 
>
> On Thu, 12 Sep 2019 at 00:11, Peter Kokot  > wrote: 
> > 
> > Hello, 
> > 
> > does host_vars directory support subdirectories? So multiple variables 
> can be organized in multiple YAML files inside the host subdirectory. For 
> example: 
> > 
> > ├─ host_vars/ 
> > ├─── hostname_1.tld/ 
> > ├─ secrets.yaml 
> > ├─ variables.yaml 
> > ├─── hostname_2.tld/ 
> > ├─ secrets.yaml 
> > ├─ other_variables.yaml 
> > └─ ... 
> > 
> > Thank you for possible answers and helping out. 
> > 
> > -- 
> > 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...@googlegroups.com . 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/be400fbe-9f32-4722-96fa-65735f9b6210%40googlegroups.com.
>  
>
>
>
>
> -- 
> Dick Visser 
> Trust & Identity Service Operations Manager 
> GÉANT 
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/6d83c372-035f-42c0-8ab3-794dbb23553d%40googlegroups.com.


Re: [ansible-project] Subdirectories in host_vars

2019-09-11 Thread Dick Visser
Yes.

On Thu, 12 Sep 2019 at 00:11, Peter Kokot  wrote:
>
> Hello,
>
> does host_vars directory support subdirectories? So multiple variables can be 
> organized in multiple YAML files inside the host subdirectory. For example:
>
> ├─ host_vars/
> ├─── hostname_1.tld/
> ├─ secrets.yaml
> ├─ variables.yaml
> ├─── hostname_2.tld/
> ├─ secrets.yaml
> ├─ other_variables.yaml
> └─ ...
>
> Thank you for possible answers and helping out.
>
> --
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/be400fbe-9f32-4722-96fa-65735f9b6210%40googlegroups.com.



-- 
Dick Visser
Trust & Identity Service Operations Manager
GÉANT

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAL8fbwPsoauigfY6babN0Uw1N%2BiX-_pUXij7Cn9B7FF1m3Bw9g%40mail.gmail.com.


[ansible-project] Subdirectories in host_vars

2019-09-11 Thread Peter Kokot
Hello,

does host_vars directory support subdirectories? So multiple variables can 
be organized in multiple YAML files inside the host subdirectory. For 
example:

├─ host_vars/
├─── hostname_1.tld/
├─ secrets.yaml
├─ variables.yaml
├─── hostname_2.tld/
├─ secrets.yaml
├─ other_variables.yaml 
└─ ...

Thank you for possible answers and helping out.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/be400fbe-9f32-4722-96fa-65735f9b6210%40googlegroups.com.