]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
config: fix external client scenario
authorGuillaume Abrioux <gabrioux@redhat.com>
Fri, 31 Jan 2020 10:51:54 +0000 (11:51 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 3 Feb 2020 09:20:19 +0000 (10:20 +0100)
When no monitor group is present in the inventory, this task fails.
This affects only non-containerized deployments.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit e7bc0794054008ac2d6771f0d29d275493319665)

roles/ceph-config/tasks/main.yml

index 71ca1ad24c9660e93980497372d2614019b0da8d..a1c4e8c2c9c0442d3704ee079450aaaee92e39d5 100644 (file)
       config_overrides: "{{ ceph_conf_overrides }}"
       config_type: ini
     when:
-      - inventory_hostname in groups[mon_group_name]
+      - inventory_hostname in groups.get(mon_group_name, [])
       - ceph_conf_local
   when:
     - not containerized_deployment|bool