]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-facts: set devices osd_auto_discovery on OSDs
authorDimitri Savineau <dsavinea@redhat.com>
Thu, 16 Jan 2020 19:03:09 +0000 (14:03 -0500)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 3 Feb 2020 15:23:38 +0000 (16:23 +0100)
We only need to set the devices fact with osd_auto_discovery on OSD
nodes.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
roles/ceph-facts/tasks/facts.yml

index a12e47e057fd133eb5cc931245e79b260a77c5f4..fdfc4f130de10f53c11aeedd9b0cd7d8a57267b3 100644 (file)
   with_dict: "{{ ansible_devices }}"
   when:
     - osd_auto_discovery | default(False) | bool
+    - inventory_hostname in groups.get(osd_group_name, [])
     - ansible_devices is defined
     - item.value.removable == "0"
     - item.value.sectors != "0"