setup:
delegate_to: "{{ item }}"
delegate_facts: True
- with_items:
- - "{{ groups['mons'] }}"
- - "{{ groups['osds'] }}"
+ with_items: "{{ groups['all'] | difference(groups.get('clients', [])) }}"
run_once: True
when:
- delegate_facts_host | bool
setup:
delegate_to: "{{ item }}"
delegate_facts: True
- with_items:
- - "{{ groups['mons'] }}"
- - "{{ groups['osds'] }}"
+ with_items: "{{ groups['all'] | difference(groups.get('clients', [])) }}"
run_once: True
when:
- delegate_facts_host | bool
set_fact:
add_osd: True
- - name: set noup flag
- command: "{{ docker_exec_cmd | default('') }} ceph --cluster {{ cluster }} osd set noup"
- delegate_to: "{{ groups['mons'][0] }}"
- run_once: True
- changed_when: False
-
roles:
- role: ceph-defaults
- role: ceph-handler
- role: ceph-common
when: not containerized_deployment | bool
- role: ceph-config
- - role: ceph-osd
-
- post_tasks:
- - name: unset noup flag
- command: "{{ docker_exec_cmd | default('') }} ceph --cluster {{ cluster }} osd unset noup"
- delegate_to: "{{ groups['mons'][0] }}"
- run_once: True
- changed_when: False
\ No newline at end of file
+ - role: ceph-osd
\ No newline at end of file