Is the second way wrong? Is one way preferred over the other?
--
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/ZXRRDvGNl8Y/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAEhzMJB6vKWN8toAtT-gWdez05cNf6JygdfrqNwzarT8K0Deew%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Both syntaxes are valid, you see more of the key=value in the docs because it is more concise (1 line). When the module requires many arguments we tend to switch (check the cloud guides).
The truth is that the yaml syntax might be better as it avoids an extra parser.