switch_to_containers: exclude clients nodes from facts gathering

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 332c39376b)
pull/5038/head
Guillaume Abrioux 2019-12-09 14:20:42 +01:00 committed by Dimitri Savineau
parent 0dbca448d1
commit 5c3ba0787c
1 changed files with 10 additions and 1 deletions

View File

@ -38,12 +38,21 @@
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: