mirror of https://github.com/ceph/ceph-ansible.git
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 commitpull/5220/head332c39376b
) (cherry picked from commit5c3ba0787c
)
parent
cfe77bc51f
commit
3b1794a0fd
|
@ -39,12 +39,21 @@
|
|||
|
||||
become: true
|
||||
|
||||
tasks:
|
||||
vars:
|
||||
delegate_facts_host: True
|
||||
|
||||
roles:
|
||||
- ceph-defaults
|
||||
|
||||
post_tasks:
|
||||
- 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
|
||||
|
||||
|
|
Loading…
Reference in New Issue