# pre-tasks for following import -
- name: gather facts
setup:
- when:
- - not delegate_facts_host | bool or inventory_hostname in groups.get(client_group_name, [])
+ when: not delegate_facts_host | bool or inventory_hostname in groups.get(client_group_name, [])
+ tags: always
- name: gather and delegate facts
setup:
with_items: "{{ groups['all'] | difference(groups.get('clients', [])) }}"
run_once: true
when: delegate_facts_host | bool
+ tags: always
- import_role:
name: ceph-defaults
when: not (inventory_hostname in groups.get('clients', [])) or (inventory_hostname == groups.get('clients', [''])|first)
- hosts: mons
+ gather_facts: false
any_errors_fatal: true
tasks:
- name: set ceph monitor install 'In Progress'
when: groups.get(mgr_group_name, []) | length == 0
- hosts: mons
+ gather_facts: false
any_errors_fatal: true
tasks:
- name: set ceph monitor install 'Complete'