openshift-logging/redeploy-certificates.yml fails at task [openshift_logging_elasticsearch : template]

Solution Verified - Updated -

Issue

When running the openshift-logging/redeploy-certificates playbook it fails with the following error:

TASK [openshift_logging_elasticsearch : template] **************************************************************************************************************************************************************************************
fatal: [master01.redhat.com]: FAILED! => {"msg": "The conditional check 'not passwd_file.stat.exists or openshift_logging_elasticsearch_prometheus_sa not in ( _logging_metrics_proxy_passwd['content'] | b64decode | from_yaml )' failed. The error was: error while evaluating conditional (not passwd_file.stat.exists or openshift_logging_elasticsearch_prometheus_sa not in ( _logging_metrics_proxy_passwd['content'] | b64decode | from_yaml )): '_logging_metrics_proxy_passwd' is undefined\n\nThe error appears to have been in '/usr/share/ansible/openshift-ansible/roles/openshift_logging_elasticsearch/tasks/generate_secret.yaml': line 12, 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- when: not passwd_file.stat.exists or openshift_logging_elasticsearch_prometheus_sa not in ( _logging_metrics_proxy_passwd['content'] | b64decode | from_yaml )\n  ^ here\n"}

Environment

OCP 3.11

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content