There's no problem doing it either way, but you're right in that the first
requires configuring host variable merging in ansible.cfg (which is not the
standard option).

As a result, people shouldn't really write roles for sharing that rely on
that in many cases.




On Wed, Dec 4, 2013 at 2:05 PM, James Martin <[email protected]> wrote:

> Is it considered bad practice to have variables in group_vars defined as
> such:
>
>
> ntp:
>   server: server.foo.com
>   setting: foo
>
> myapp:
>    database: bar
>    option: baz
>
>
> instead of :
>
> ntp_server: server.foo.com
> ntp_setting: foo
>
> myapp_database: bar
> myapp_option: baz
>
>
> It seems the first option is cleaner, but I don't believe you could
> override variables in your hosts file.  Instead, you'd create a
> inventory/host_vars/myhost file to override?
>
> Thanks,
>
> James
>
> --
> 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].
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Michael DeHaan <[email protected]>
CTO, AnsibleWorks, Inc.
http://www.ansibleworks.com/

-- 
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].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to