datastax / pulsar-ansible

Apache License 2.0
4 stars 9 forks source link

Fix conditional var assignment to avoid failed task when disabled #14

Closed MMirelli closed 2 years ago

MMirelli commented 2 years ago

This resolves the following error, that manifests even when disabling pulsarAdmin tls_certs generation for (skip_anco_tls_certs_generatation=true), in the case groups doesn't contain 'adminConsole'.

The error was: error while evaluating conditional (srv_host_list!= \"\" and deploy_adminconsole is defined and enable_anco_https is defined and enable_anco_https|bool and skip_anco_tls_certs_generatation is defined and not
skip_anco_tls_certs_generatation|bool): {{ groups['adminConsole']|join(',') }}: 'dict object' has no attribute 'adminConsole'\n\nThe error appears to be in '/opt/evmt-deployments/env_001/pulsar-ansible-master/roles/local_process/gen_secFile/create_tls_certs/tasks/main.yaml'
yabinmeng commented 2 years ago

This is covered by PR #19 (https://github.com/datastax/pulsar-ansible/pull/19)