I've posted the blog post: YAML best practices for Ansible playbooks - tasks 
<https://servercheck.in/blog/yaml-best-practices-ansible-playbooks-tasks>

Only proofread once, so please let me know if you find any points of 
contention or outright lies!

-Jeff



On Thursday, August 28, 2014 12:20:22 PM UTC-5, Patrick Heeney wrote:
>
> I agree. I should say I have never learned full YAML and how that relates 
> to ansible way of setting up the arguments. Everything I have picked up was 
> from different playbooks and examples from around the web. That's why it 
> would be great to have a generic use case document that ansible could point 
> to for conventions and why it is good to do it that way. I imagine a blog 
> post would suffice so I am looking forward to Jeff's post.
>
> Hopefully I can re-work all my playbooks soon.
>
>
> On Thu, Aug 28, 2014 at 10:14 AM, Michael Peters <[email protected] 
> <javascript:>> wrote:
>
>> On Thu, Aug 28, 2014 at 12:34 PM, Patrick Heeney
>> <[email protected] <javascript:>> wrote:
>>
>> > Even with the widest screens available it is very difficult to read
>> > everything on one line. For version control as mentioned it is also a 
>> lot
>> > easier to break it up.
>> >
>> > Take for example this playbook of mine:
>> > 
>> https://github.com/protobox/protobox/blob/master/lib/ansible/applications/wordpress/tasks/application.yml
>> >
>> > It would be difficult to read a lot of those on a single line.
>>
>> These are all arguments for using full YAML instead of the k=v style.
>> Not only do you get the benefits of multiple lines, but you also
>> preserve the type of the arguments whereas in the k=v style everything
>> is a string.
>>
>> --
>> 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/GfJBkzuTTNM/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, 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/CAJQqANcV-w0Sp%2BfgoDawZ0zxR%2BYefefb0WHqRCx3Rg5_PFLBqw%40mail.gmail.com
>> .
>> 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/b7041511-68a4-4132-b771-3347b2941c37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to