intersight-ansible icon indicating copy to clipboard operation
intersight-ansible copied to clipboard

add a note about DEFAULT_JINJA2_NATIVE and remove json notation from the examples

Open bastolino opened this issue 10 months ago • 2 comments

Hi everyone,

you have the json_body inserted as json everywhere. It is possible to continue with yaml notation right away but if you insert logik with jinja2, it gets automatically converted into strings. Possibly, this is the reason why you switched to json. If sou set DEFAULT_JINJA2_NATIVE (https://docs.ansible.com/ansible/latest/reference_appendices/config.html#default-jinja2-native) to true, you can use yaml inside the playbook for the api_body as it is intended.

So, just a small change with huge impact regarding usability for this module.

Best regards

bastolino avatar Apr 11 '24 12:04 bastolino