-
Bug
-
Resolution: Done
-
Critical
-
None
-
Unspecified
-
None
For azure_manage_postgresql role, there are undefined vars in the create.yml file.
While writing the integration test, I got such failure:
TASK [cloud.azure_ops.azure_manage_postgresql : Update PostgreSQL Server configuration settings] ***
fatal: [testhost]: FAILED! => {"msg": "The conditional check 'azure_postgresql_settings | length > 0' failed. The error was: error while evaluating conditional (azure_postgresql_settings | length > 0): 'azure_postgresql_settings' is undefined. 'azure_postgresql_settings' is undefined\n\nThe error appears to be in '/root/ansible_collections/cloud/azure_ops/roles/azure_manage_postgresql/tasks/create.yml': line 59, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Update PostgreSQL Server configuration settings\n ^ here\n"}.
And I noticed that there are undefined vars in the create.yml: azure_postgresql_settings, azure_postgresql_firewall_rules, and azure_postgresql_database_instances.
See create.yml
The lines: 67, 78, 90