]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
switch_to_containers: exclude clients nodes from facts gathering
authorGuillaume Abrioux <gabrioux@redhat.com>
Mon, 9 Dec 2019 13:20:42 +0000 (14:20 +0100)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Mon, 3 Feb 2020 14:32:20 +0000 (09:32 -0500)
just like site.yml and rolling_update, let's exclude clients node from
the fact gathering.

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

infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml

index af244031a6acc2348d0471b8e813a38fcc005e6f..537648750354e603796983fc89a42f0f88d84965 100644 (file)
 
   become: true
 
+  vars:
+    delegate_facts_host: True
+
   tasks:
+    - import_role:
+        name: ceph-defaults
+
     - name: gather and delegate facts
       setup:
       delegate_to: "{{ item }}"
       delegate_facts: True
-      with_items: "{{ groups['all'] }}"
+      with_items: "{{ groups['all'] | difference(groups.get(client_group_name, [])) }}"
+      run_once: true
+      when: delegate_facts_host | bool
+      tags: always
 
 - name: switching from non-containerized to containerized ceph mon
   vars: