kolla-ansible/ansible/roles/ceilometer/tasks/precheck.yml
FelipeAFV 296de45b30 Clarifies misleading error on ceilometer role`s precheck task
Signed-off-by: FelipeAFV <ffigueroa@whitestack.com>

Closes-Bug: #2009518
Change-Id: I8c4b0053f2f16b6d243462c4b8117748d26143a0
2023-05-12 01:07:49 +00:00

15 lines
427 B
YAML

---
- import_role:
name: service-precheck
vars:
service_precheck_services: "{{ ceilometer_services }}"
service_name: "{{ project_name }}"
- name: Checking Ceilometer publishers
assert:
that:
- not (enable_ceilometer | bool) or enable_gnocchi | bool or enable_ceilometer_prometheus_pushgateway | bool
msg: "At least one Ceilometer publisher must be enabled"
run_once: True
changed_when: false