]> git-server-git.apps.pok.os.sepia.ceph.com Git - cephmetrics.git/commit
ansible: Fix merge_vars.yml
authorBoris Ranto <branto@redhat.com>
Fri, 6 Oct 2017 10:00:25 +0000 (12:00 +0200)
committerBoris Ranto <branto@redhat.com>
Fri, 6 Oct 2017 10:00:29 +0000 (12:00 +0200)
commit3123166b075d36cd6e546781f003c45ff0c13d58
tree1d890811b403f549fbf32ee1ecc5572b70d75940
parent033cd007e6830892831a7e070029d7f95cc725af
ansible: Fix merge_vars.yml

Currently, we override the variables in merge_vars. However, if we run
the script several times (e.g. a host is a grafana and a collectd node)
then vars[item] is defined but it can be that it is not a mapping. In
this case we redefine the value to empty string breaking the actual
values of the variables.

We redefine e.g. devel_mode or use_epel to empty string this way making
it false for the grafana server node that is both grafana and the
collectd node.

Signed-off-by: Boris Ranto <branto@redhat.com>
ansible/roles/cephmetrics-common/tasks/merge_vars.yml