]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commit
facts: fix bug in grafana_server_addr fact setting
authorGuillaume Abrioux <gabrioux@redhat.com>
Mon, 24 Jun 2019 20:30:23 +0000 (22:30 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 26 Jun 2019 13:08:44 +0000 (15:08 +0200)
commitb9c49227bbb8dd55ba3cbefec52fd68a4b47583b
tree6dda6ec60daca4ca75e30ab46f4451384490bd79
parentadf5fdca8ba6601d1d51c7d46a25128b2c7f6e76
facts: fix bug in grafana_server_addr fact setting

If no grafana-server group is defined while an mgr group is, that task
will fail because `hostvars[groups[grafana_server_group_name][0]` can't
return anything since `groups['grafana-server']` will be a non existing
key.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 366b309c12adfcef7dba3548ad3f05000148e867)
roles/ceph-facts/tasks/facts.yml