diff --git a/ansible/roles/monasca/tasks/post_config.yml b/ansible/roles/monasca/tasks/post_config.yml index d06654036c65f9cb00a1fa63aff22e54832693c9..dbe7b2906b8985deea72b701eb6c51fcfc43bb51 100644 --- a/ansible/roles/monasca/tasks/post_config.yml +++ b/ansible/roles/monasca/tasks/post_config.yml @@ -115,6 +115,6 @@ changed_when: monasca_grafana_datasource_response.status == 200 failed_when: monasca_grafana_datasource_response.status not in [200, 409] or (monasca_grafana_datasource_response.status == 409 and - ("Data source with same name already exists" not in monasca_grafana_datasource_response.json.message|default("")) + "Data source with same name already exists" not in monasca_grafana_datasource_response.json.message|default("")) with_dict: "{{ monasca_grafana_data_sources }}" when: item.value.enabled | bool