diff --git a/ansible/roles/ceph/tasks/start_mons.yml b/ansible/roles/ceph/tasks/start_mons.yml index e555d8d5dfb513bc30aae9dcae0228e4d13e7f4d..1bb2484a1cb35477dfb08b5b0003f00ad6c0d1cf 100644 --- a/ansible/roles/ceph/tasks/start_mons.yml +++ b/ansible/roles/ceph/tasks/start_mons.yml @@ -12,4 +12,3 @@ - "{{ node_config_directory }}/ceph-mon/:{{ container_config_directory }}/:ro" - "ceph_mon:/var/lib/ceph" - "ceph_mon_config:/etc/ceph" - when: inventory_hostname in groups['ceph-mon'] diff --git a/ansible/roles/ceph/tasks/start_osds.yml b/ansible/roles/ceph/tasks/start_osds.yml index 1324fd80e7b4ee3a039c02253946cecfad67b7e0..1a59cbcd622a9bdb06595b3920a68cc8fac25b62 100644 --- a/ansible/roles/ceph/tasks/start_osds.yml +++ b/ansible/roles/ceph/tasks/start_osds.yml @@ -45,6 +45,4 @@ with_together: - id.results - osds - when: - - inventory_hostname in groups['ceph-osd'] - - osds + when: osds diff --git a/ansible/roles/ceph/tasks/start_rgws.yml b/ansible/roles/ceph/tasks/start_rgws.yml index 4de1e8afdcee7defb37919f1701942044ef179c8..f8f963225ae4a237c3aa8b7e06719598b9f0deed 100644 --- a/ansible/roles/ceph/tasks/start_rgws.yml +++ b/ansible/roles/ceph/tasks/start_rgws.yml @@ -6,4 +6,3 @@ image: "{{ ceph_rgw_image_full }}" name: "ceph_rgw" volumes: "{{ node_config_directory }}/ceph-rgw/:{{ container_config_directory }}/:ro" - when: inventory_hostname in groups['ceph-rgw'] diff --git a/ansible/roles/ceph/tasks/upgrade.yml b/ansible/roles/ceph/tasks/upgrade.yml index ed97d539c095cf1413af30cc23dea272095b97dd..db8bf0730f34ad6ccae3a79631646fd5ae0a3fda 100644 --- a/ansible/roles/ceph/tasks/upgrade.yml +++ b/ansible/roles/ceph/tasks/upgrade.yml @@ -1 +1,16 @@ --- +- include: config.yml + +- include: start_mons.yml + serial: "1" + when: inventory_hostname in groups['ceph-mon'] + +- include: start_osds.yml + serial: "1" + when: inventory_hostname in groups['ceph-osd'] + +- include: start_rgws.yml + serial: "30%" + when: + - inventory_hostname in groups['ceph-rgw'] + - enable_ceph_rgw | bool