--- - include_tasks: deploy.yml - name: Check final release (as running on MONs) become: true command: "docker exec ceph_mon ceph -m {{ 'storage' | kolla_address }} versions" changed_when: false register: ceph_release_command delegate_to: "{{ groups['ceph-mon'][0] }}" run_once: true - name: Finalize the upgrade by disallowing older OSDs become: true command: "docker exec ceph_mon ceph -m {{ 'storage' | kolla_address }} osd require-osd-release {{ ((ceph_release_command.stdout|from_json).mon | string).split(' ')[4] }}" changed_when: false delegate_to: "{{ groups['ceph-mon'][0] }}" run_once: true