--- - name: wait for mds socket to exist command: "{{ docker_exec_cmd }} stat /var/run/ceph/{{ cluster }}-mds.{{ ansible_hostname }}.asok" register: multi_mds_socket retries: 5 delay: 15 until: multi_mds_socket.rc == 0 - name: enable multimds if requested when mon is containerized command: "{{ docker_exec_cmd }} ceph --cluster {{ cluster }} fs set {{ cephfs }} allow_multimds true --yes-i-really-mean-it" changed_when: false when: - containerized_deployment - mds_allow_multimds - name: set max_mds when mon is containerized command: "{{ docker_exec_cmd }} ceph --cluster {{ cluster }} fs set {{ cephfs }} max_mds {{ mds_max_mds }}" changed_when: false when: - containerized_deployment - mds_allow_multimds - mds_max_mds > 1