I often have to do something like this in ansible, and I need to document individual arguments:
- name: foo # ...
module_name: # ...
arg1: 1 # ...
arg2: 2 # ...
bar: "bar" # explanation <---- related
baz: "baz" # explanation <---- related
qux: 42 # ...
If arguments are related, it would be nice to group them.
I tried all the following, which are incorrect syntax:
arg1: 1 # ...
arg2: 2 # ...
bar: "bar" baz:"baz" # explanation
qux: 42 # ...
arg1: 1 # ...
arg2: 2 # ...
bar: "bar", baz: "baz" # explanation
qux: 42 # ...
arg1: 1 # ...
arg2: 2 # ...
bar="bar" baz="baz" # explanation
qux: 42 # ...
I skimmed the yaml 1.2 reference, but it's surprisingly complicated.
Is this possible?