ansible-devops icon indicating copy to clipboard operation
ansible-devops copied to clipboard

Monitor install fails on db2_certificate management step

Open faangbait opened this issue 5 months ago • 0 comments

Collection version

>=28.0.0,<29

Environment information

n/a

What happened?

I feel like I patched something very similar to this a while back, but that was for Manage, and this error throws on Monitor.

Relevant log output

TASK [monitorapp : cert-mgmt: Create db2_certificate secret] *******************
task path: /opt/ansible/roles/monitorapp/tasks/cert-mgmt.yml:114
fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable.. 'dict object' has no attribute 'certificates'

The error appears to be in '/opt/ansible/roles/monitorapp/tasks/cert-mgmt.yml': line 114, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

## Secret to hold db2 certificate as the hook-db expects
- name: \"cert-mgmt: Create db2_certificate secret\"
  ^ here
This one looks easy to fix. It seems that there is a value started
with a quote, and the YAML parser is expecting to see the line ended
with the same kind of quote. For instance:

    when: \"ok\" in result.stdout

Could be written as:

   when: '\"ok\" in result.stdout'

Or equivalently:

   when: \"'ok' in result.stdout\"
"}

faangbait avatar Aug 04 '25 09:08 faangbait