--- - name: Include_tasks systemd.yml ansible.builtin.include_tasks: systemd.yml - name: Enable ceph-mds.target ansible.builtin.service: name: ceph-mds.target enabled: true daemon_reload: true when: containerized_deployment | bool - name: Systemd start mds container ansible.builtin.systemd: name: ceph-mds@{{ ansible_facts['hostname'] }} state: started enabled: true masked: false daemon_reload: true - name: Wait for mds socket to exist ansible.builtin.command: "{{ container_binary }} exec ceph-mds-{{ ansible_facts['hostname'] }} sh -c 'stat /var/run/ceph/{{ cluster }}-mds.{{ ansible_facts['hostname'] }}.asok || stat /var/run/ceph/{{ cluster }}-mds.{{ ansible_facts['fqdn'] }}.asok'" changed_when: false register: multi_mds_socket retries: 5 delay: 15 until: multi_mds_socket.rc == 0