Also note what you have above inside [] is not a hash.
If you want a hash on one line, use {}
proxy_details: { foo: bar, baz: glorp }
or express them on more than one line
proxy_details:
foo: bar
baz: glorp
On Fri, Jan 24, 2014 at 11:39 AM, Edd Grant <[email protected]> wrote:
> Thanks both, I have a play with these suggestions and see how I get on.
>
>
> On Friday, January 24, 2014 3:53:21 PM UTC, Brian Coca wrote:
>>
>> I wasn't saying you had to, just showing that you can flexibly organize
>> them in differnet ways, specially if you wanted different versions of the
>> same group file (all) for each inventory. For your last question:
>> /some/dir/inventory
>> production
>> stage
>> development
>> group_vars/
>> all => proxy_details: [http_proxy_host: abc.def.com,
>> http_proxy_port: 80]
>> webservers
>> development => proxy_details: [http_proxy_host: zwx.dev.com,
>> http_proxy_port: 80]
>>
>> or optionally, instead of in all
>> staging => proxy_details: [http_proxy_host: abc.def.com,
>> http_proxy_port: 80]
>> production => proxy_details: [http_proxy_host: abc.def.com,
>> http_proxy_port: 80]
>>
>>
>> --
> 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].
> 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].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.