Generate the whole of app.yml from a variable rather than template bits of it
Rather than templating sections of the app.yml
file, based on the standalone.yml template it might would make sense to generate the whole file as YAML, for example using a template like this:
---
# {{ ansible_managed }}
# See https://github.com/discourse/discourse_docker/blob/main/samples/standalone.yml for the default options
{{ discourse_app | to_nice_yaml(indent=4, width=1200) }}
...
Currently the yq role is needed to make the app.yml
that is generated valid YAML.
Edited by Chris Croome