Hi,
I noticed today on IRC that it's not just me how is not in favor of the new "module: parameters" syntax, and wanted to list the reasons why I think we should probably not promote it in the documentation:
- Currently the documentation is quite confusing, we have examples
showing one or the other method, and certain examples show both ways in
a single example (fixable)
- If there are no parameters to a command (like pause), it's weird to
only have:
- tasks:
- pause:
BTW Even though this is listed as an example, it fails in Ansible (both
"pause:" and "action: pause") (fixable)
- By promoting "command: parameters" we are making
"local_action: commmand parameters" a confusing exception, should we
promote "delegate_to: localhost" instead too ?
- By explicitely stating "action:" you make people use the same
terminology for an action, if not it might become confusing for support
- By explicitely stating "action:" it is more obvious that only one such
entry is allowed, which is not so clear from:
- tasks:
- command: ls
register: foo
pause:
only_if: expression
debug: msg="blah"
I know I already brought it up in the original pull-request at:
https://github.com/ansible/ansible/pull/1426
and it was clear that this was not negotiable, but since I now see jp_mens, skvidal and daniel_hozac not liking it either and advising people on IRC to use "action:" instead, I wonder if we want to release it like this on v0.9.
Since it was not discussed on the list properly (afaict) I wanted to bring it up before we are commiting ourselves to it.