Oh yeah, good point! I spend most of my time programming in Groovy where a
Map (which is about as close to a hash as you can get) is defined with
square brackets, as a result I sometimes find the Groovy --> YAML context
switch ends up in me writing nonsense YAML! :-)


On 25 January 2014 00:09, Michael DeHaan <[email protected]> wrote:

> 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 a topic in the
> Google Groups "Ansible Project" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/ansible-project/NbZkalvBt08/unsubscribe.
> To unsubscribe from this group and all its topics, 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.
>



-- 
Web: http://www.eddgrant.com
Email: [email protected]
Mobile: +44 (0) 7861 394 543

-- 
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.

Reply via email to