<div dir="ltr"><div>ansible-pulp currently tries to generate a Python settings file.from settings provided by the user in the playbook[0]. However, the generated Python code is not always syntactically correct[1]. <br></div><div><br></div><div>The settings file is generated using a Jinja template. Jinja provides a to_json that can be used to generate the settings as JSON. I propose that we change the behavior of ansible-pulp to generate settings.json instead of settings.py.</div><div><br></div><div>Are there any objections or other ideas?<br></div><div><br></div><div>[0] <a href="https://github.com/pulp/ansible-pulp/blob/master/roles/pulp/templates/settings.py.j2">https://github.com/pulp/ansible-pulp/blob/master/roles/pulp/templates/settings.py.j2</a></div><div>[1] <a href="https://pulp.plan.io/issues/5687">https://pulp.plan.io/issues/5687</a></div><br></div>