Uploaded image for project: 'Ansible Cloud Automation'
  1. Ansible Cloud Automation
  2. ACA-1599

For the azure_manage_postgresql role, there are undefined vars in the create.yml file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • None
    • Unspecified
    • azure, content
    • None
    • Critical

      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

            prabinov Polina Rabinovich
            prabinov Polina Rabinovich
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: