when: (check_quorum_status.stdout | from_json).quorum | length != groups[mon_group_name] | length
when: inventory_hostname == groups[mon_group_name] | first
+ - name: Replace ceph-mon systemd unit
+ when: container_binary == 'docker'
+ block:
+ - import_role:
+ name: ceph-mon
+ tasks_from: systemd.yml
+
+ - name: reload systemd config files
+ systemd:
+ daemon_reload: true
+
- name: ensure /var/lib/ceph/bootstrap-rbd-mirror is present
file:
path: /var/lib/ceph/bootstrap-rbd-mirror
name: ceph-defaults
- import_role:
name: ceph-facts
+
+ - name: Replace ceph-mgr systemd unit
+ when: container_binary == 'docker'
+ block:
+ - import_role:
+ name: ceph-mgr
+ tasks_from: systemd.yml
+
+ - name: reload systemd config files
+ systemd:
+ daemon_reload: true
+
- import_role:
name: ceph-handler
- import_role:
name: ceph-defaults
- import_role:
name: ceph-facts
+
+ - name: Replace ceph-mgr systemd unit
+ when: container_binary == 'docker'
+ block:
+ - import_role:
+ name: ceph-mgr
+ tasks_from: systemd.yml
+
+ - name: reload systemd config files
+ systemd:
+ daemon_reload: true
+
- import_role:
name: ceph-handler
- import_role:
name: ceph-defaults
- import_role:
name: ceph-facts
+
+ - name: Replace ceph-osd systemd unit
+ when: container_binary == 'docker'
+ block:
+ - import_role:
+ name: ceph-osd
+ tasks_from: container_options_facts.yml
+
+ - import_role:
+ name: ceph-osd
+ tasks_from: systemd.yml
+
+ - name: reload systemd config files
+ systemd:
+ daemon_reload: true
+
- import_role:
name: ceph-handler
- import_role:
- import_role:
name: ceph-facts
+ - name: Replace ceph-mds systemd unit
+ when: container_binary == 'docker'
+ block:
+ - import_role:
+ name: ceph-mds
+ tasks_from: systemd.yml
+
+ - name: reload systemd config files
+ systemd:
+ daemon_reload: true
+
- name: prevent restart from the packaging
systemd:
name: ceph-mds@{{ ansible_facts['hostname'] }}
- import_role:
name: ceph-facts
+ - name: Replace ceph-mds systemd unit
+ when: container_binary == 'docker'
+ block:
+ - import_role:
+ name: ceph-mds
+ tasks_from: systemd.yml
+
+ - name: reload systemd config files
+ systemd:
+ daemon_reload: true
+
- name: prevent restarts from the packaging
systemd:
name: ceph-mds@{{ ansible_facts['hostname'] }}
- import_role:
name: ceph-facts
+ - name: Replace ceph-rgw systemd unit
+ when: container_binary == 'docker'
+ block:
+ - import_role:
+ name: ceph-rgw
+ tasks_from: systemd.yml
+
+ - name: reload systemd config files
+ systemd:
+ daemon_reload: true
+
- name: stop ceph rgw when upgrading from stable-3.2
systemd:
name: ceph-radosgw@rgw.{{ ansible_facts['hostname'] }}
name: ceph-defaults
- import_role:
name: ceph-facts
+
+ - name: Replace ceph-rbdmirrors systemd unit
+ when: container_binary == 'docker'
+ block:
+ - import_role:
+ name: ceph-rbd-mirror
+ tasks_from: systemd.yml
+
+ - name: reload systemd config files
+ systemd:
+ daemon_reload: true
+
- import_role:
name: ceph-handler
- import_role:
name: ceph-defaults
- import_role:
name: ceph-facts
+
+ - name: Replace ceph-nfs systemd unit
+ when: container_binary == 'docker'
+ block:
+ - import_role:
+ name: ceph-nfs
+ tasks_from: systemd.yml
+
+ - name: reload systemd config files
+ systemd:
+ daemon_reload: true
+
- import_role:
name: ceph-handler
- import_role:
- import_role:
name: ceph-facts
tasks_from: container_binary.yml
+
+ - name: Replace ceph-crash systemd unit
+ when: container_binary == 'docker'
+ block:
+ - import_role:
+ name: ceph-crash
+ tasks_from: systemd.yml
+
+ - name: reload systemd config files
+ systemd:
+ daemon_reload: true
+
- import_role:
name: ceph-handler