2017-09-27 20:13:39 +08:00
|
|
|
---
|
2019-07-24 16:10:18 +08:00
|
|
|
- name: include_tasks systemd.yml
|
|
|
|
include_tasks: systemd.yml
|
2017-09-27 20:13:39 +08:00
|
|
|
|
2021-08-10 21:21:19 +08:00
|
|
|
- name: enable ceph-mds.target
|
|
|
|
service:
|
|
|
|
name: ceph-mds.target
|
|
|
|
enabled: yes
|
|
|
|
daemon_reload: yes
|
|
|
|
when: containerized_deployment | bool
|
|
|
|
|
2017-09-27 20:13:39 +08:00
|
|
|
- name: systemd start mds container
|
|
|
|
systemd:
|
2021-03-03 22:43:50 +08:00
|
|
|
name: ceph-mds@{{ ansible_facts['hostname'] }}
|
2017-09-27 20:13:39 +08:00
|
|
|
state: started
|
|
|
|
enabled: yes
|
2019-03-20 18:35:36 +08:00
|
|
|
masked: no
|
2017-09-27 20:13:39 +08:00
|
|
|
daemon_reload: yes
|
|
|
|
|
|
|
|
- name: wait for mds socket to exist
|
2021-03-03 22:43:50 +08:00
|
|
|
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'"
|
2018-10-30 22:51:32 +08:00
|
|
|
changed_when: false
|
2017-09-27 20:13:39 +08:00
|
|
|
register: multi_mds_socket
|
|
|
|
retries: 5
|
|
|
|
delay: 15
|
|
|
|
until: multi_mds_socket.rc == 0
|