]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commit
ceph-facts: fix grafana group conversion
authorDimitri Savineau <dsavinea@redhat.com>
Mon, 7 Dec 2020 17:11:54 +0000 (12:11 -0500)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 10 Dec 2020 15:51:16 +0000 (16:51 +0100)
commit2aeab882f31ebef1bfc48a6ab519b357c1125e39
tree1a0570b4f29a03a8015821534a21d730865ba983
parent3b9cdc8502b14f8095a555cfea907b95111a190e
ceph-facts: fix grafana group conversion

The conversion fact task was only executed when the grafana_server_group_name
variable was explicitly set in the user configuration. If an user was using
the default value then the conversion wasn't executed.

This also adds back the default grafana_server_group_name value in case user
was using the default value and to avoid undefined variable error.

Instead of hardcoding the "monitoring" group name then we can reuse the
monitoring_group_name variable.

There's no need to override the monitoring_group_name variable, it's either
using the default value or the one defined by the user.

Finally removing the delegate_to statement on the add_host task since it's
always executed on the ansible controller.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1903732
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
roles/ceph-facts/tasks/convert_grafana_server_group_name.yml
roles/ceph-facts/tasks/main.yml