ceph-ansible/roles/ceph-mds/tasks/containerized.yml

20 lines
625 B
YAML
Raw Normal View History

---
- name: include_tasks systemd.yml
include_tasks: systemd.yml
- name: systemd start mds container
systemd:
name: ceph-mds@{{ ansible_facts['hostname'] }}
state: started
enabled: yes
masked: no
daemon_reload: yes
- name: wait for mds socket to exist
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