- name: stop standby ceph mds
systemd:
- name: ceph-mds@{{ hostvars[item]['ansible_hostname'] }}
+ name: "ceph-mds@{{ hostvars[item]['ansible_hostname'] }}"
state: stopped
enabled: no
delegate_to: "{{ item }}"
# somehow, having a single task doesn't work in containerized context
- name: mask systemd units for standby ceph mds
systemd:
- name: ceph-mds@{{ hostvars[item]['ansible_hostname'] }}
+ name: "ceph-mds@{{ hostvars[item]['ansible_hostname'] }}"
masked: yes
delegate_to: "{{ item }}"
with_items: "{{ groups['standby_mdss'] }}"