CEPHADM_IMAGE: '{{ ceph_docker_registry }}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }}'
- name: adopt ceph mgr daemons
- hosts: "{{ groups[mgr_group_name] | default(groups[mon_group_name]) }}"
+ hosts: "{{ groups['mgrs'] | default(groups['mons']) | default(omit) }}"
serial: 1
become: true
gather_facts: false
tasks_from: container_binary
- name: perform checks, remove mds and print cluster health
- hosts: "{{ groups[mon_group_name][0] }}"
+ hosts: mons[0]
become: true
vars_prompt:
- name: ireallymeanit
post_tasks:
- name: show ceph health
command: "{{ container_exec_cmd | default('') }} ceph --cluster {{ cluster }} -s"
- changed_when: false
\ No newline at end of file
+ changed_when: false
msg: gather facts on all Ceph hosts for following reference
- name: confirm if user really meant to remove manager from the ceph cluster
- hosts: "{{ groups[mon_group_name][0] }}"
+ hosts: mons[0]
become: true
vars_prompt:
- name: ireallymeanit
post_tasks:
- name: show ceph health
command: "{{ container_exec_cmd | default('') }} ceph --cluster {{ cluster }} -s"
- changed_when: false
\ No newline at end of file
+ changed_when: false
- debug: msg="gather facts on all Ceph hosts for following reference"
- name: confirm whether user really meant to remove monitor from the ceph cluster
- hosts: "{{ groups[mon_group_name][0] }}"
+ hosts: mons[0]
become: true
vars_prompt:
- name: ireallymeanit
- name: show ceph mon status
command: "{{ container_exec_cmd }} ceph --cluster {{ cluster }} mon stat"
delegate_to: "{{ mon_host }}"
- changed_when: false
\ No newline at end of file
+ changed_when: false
- name: gather facts and check the init system
hosts:
- - "{{ mon_group_name|default('mons') }}"
- - "{{ osd_group_name|default('osds') }}"
+ - mons
+ - osds
become: True
tasks:
- name: confirm whether user really meant to remove osd(s) from the cluster
- hosts: "{{ groups[mon_group_name][0] }}"
+ hosts: mons[0]
become: true
- name: confirm whether user really meant to remove rbd mirror from the ceph
cluster
- hosts: "{{ groups[mon_group_name][0] }}"
+ hosts: mons[0]
become: true
vars_prompt:
- name: ireallymeanit