]> 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>
Fri, 31 Jan 2020 11:02:15 +0000 (12:02 +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>
roles/ceph-config/tasks/main.yml

index 8a212407f1e9e188a9b543b3ab590f4c94e06a92..6550f437f508d22402bac322408c3a335f961fc4 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 | bool
 
 - name: config file operations for containerized scenarios