Kai, Thanks for this, I didn't know that should make converting ad hoc ansible command into playbook style entries easier. Stylistically I wouldn't want to mix key: value and key=value though as in the example above.
Jon On Wednesday, May 25, 2016 at 9:52:30 AM UTC+1, Kai Stian Olstad wrote: > > On 25.05.2016 07:23, 'jhawkesworth' via Ansible Development wrote: > > Single line ansible module calls can use the key=value key=value > > syntax, > > but when you are using the multi-line yaml style syntax it needs to be > > key: > > value > > This statement is not correct. > > > > yamllint.com or a yaml-aware text editor can be a help when you are > > getting > > used to writing playbooks. > > Code like this work > - name: Update the Apache config > copy: > > src=httpd.conf > dest=/etc/httpd/httpd.conf > > Even dropping the bigger than and it works, also yamllint.com says it is > valid. > > More about multiline here > > https://support.ansible.com/hc/en-us/articles/201957837-How-do-I-split-an-action-into-a-multi-line-format- > > > -- > Kai Stian Olstad > -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
