Thanks, makes perfect sense why the two syntaxes are available. I think 
I'll be
sticking to the long form to keep it simple and consistent for new people.

On Friday, July 25, 2014 6:30:13 AM UTC-7, Michael DeHaan wrote:
>
> The idea behind key=value is it makes it nice to put everything all on one 
> line.
>
> yum: name=foo state=installed
>
> Which leads to more concise playbooks than the short-form YAML style
>
> yum: { name: 'foo', state: 'installed' }
>
> And is easier to type and skim.
>
> We don't care which way you do things, though if you are going to put 
> things on seperate lines and use the long form, it makes sense to use the 
> YAML data structure.
>
> We'll continue to use the short form for most everything until lines get 
> long, or complicated structured data needs to be passed (like the cloud 
> modules).
>
>
>
>
> On Fri, Jul 25, 2014 at 9:25 AM, C. Morgan Hamill <[email protected] 
> <javascript:>> wrote:
>
>> Excerpts from Steffen Prince's message of 2014-07-25 03:24:19 -0400:
>> > Pros and cons of module argument syntax styles?
>> >
>> > INI style
>> >
>> >  - module: >
>> >      key1=val1
>> >      key2=val2
>> >      key3=val3
>> >      key4=val4
>> >
>> >
>> > yaml style
>> >
>> >  - module:
>> >      key1: val1
>> >      key2: val2
>> >      key3: val3
>> >      key4: val4
>>
>> Personally, I strongly prefer the latter.
>>
>> I don't think that a general case can be made for one or the other,
>> though --- just preference.
>> --
>> Morgan
>>
>> --
>> 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] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/1406294649-sup-2573%40al.wesleyan.edu
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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/83ec1c17-0601-439a-972b-1ef234cc3bc1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to