However, if not defined, Ansible will crash. Tested with devenv.
TASK [odoo-role : Add Odoo config] *****************************************************************************************************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ansible.errors.AnsibleUndefinedVariable: 'odoo_role_db_port' is undefined
fatal: [odoo-role-test.local]: FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'odoo_role_db_port' is undefined"}
In
odoo.conf.j2
there is a conditional onodoo_role_db_port
variable.https://github.com/coopdevs/odoo-role/blob/fecda00a3f8a61151283211bab8e98cdd95f69bd/templates/odoo.conf.j2#L34
However, if not defined, Ansible will crash. Tested with
devenv
.