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]> wrote: > On Thu, Aug 28, 2014 at 12:34 PM, Patrick Heeney > <[email protected]> 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]. > 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/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/CAPEkY-Nj-mWBM07rk%2BFQHFEbfxP2e8J5DM%3DJ14FbiX3hoiGdFw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
