I actually added in the variables into my development/hosts file like so:

[dev1]
dev1.example.com

[dev1:vars]
http_port=80
server_name=dev1.example.com
document_root=/var/www/dev1.example.com

[dev2]
dev2.example.com

[dev2:vars]
http_port=80
server_name=dev2.example.com
document_root=/var/www/dev2.example.com

Do you believe this is an efficient/proper way of having specific variables 
per node/environment?

On Tuesday, November 29, 2016 at 3:15:33 PM UTC-5, Jeffrey Wen wrote:
>
> Hi Brian,
>
> If I change it to `defaults/main.yml`, how would I reference my 
> `group_vars/dev1.example.com` variables file?
>
> On Tuesday, November 29, 2016 at 3:11:58 PM UTC-5, Brian Coca wrote:
>>
>> Move from vars/main.yml to default/main.yml then the group_vars will be 
>> able to override the role vars.
>>
>>
>>
>> ----------
>> Brian Coca
>>
>

-- 
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/608c1728-c011-4045-a863-69932669e100%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to