If I'm reading this right, ansible.playbook doesn't support anything other than files and var=value definitions, not inline yaml or inline json, right?
According to the ansible docs, --extra-vars supports inline json (>=v1.2) and inline yaml (>=v1.3). (of course json is yaml, so only bother with json). Could this be enhanced to support that as well?
I'm using a playbook in an action chain, and I would like to pass in yaml like this:
If I'm reading this right, ansible.playbook doesn't support anything other than files and var=value definitions, not inline yaml or inline json, right?
According to the ansible docs,
--extra-vars
supports inline json (>=v1.2) and inline yaml (>=v1.3). (of course json is yaml, so only bother with json). Could this be enhanced to support that as well?I'm using a playbook in an action chain, and I would like to pass in yaml like this:
This would approximate how I would add the vars if I added them directly to the playbook under vars.