Add-on to #1329.
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
register: check_existing_cephfs
changed_when: false
failed_when: false
- when: inventory_hostname == groups.mons|last
- name: create ceph filesystem
command: ceph --cluster {{ cluster }} fs new {{ cephfs }} {{ cephfs_metadata }} {{ cephfs_data }}
changed_when: false
- when:
- - inventory_hostname == groups.mons|last
- - check_existing_cephfs.rc != 0
+ when: check_existing_cephfs.rc != 0
- name: allow multimds
command: ceph --cluster {{ cluster }} fs set {{ cephfs }} allow_multimds true --yes-i-really-mean-it
- not mon_containerized_deployment
- groups[mds_group_name] is defined
- "{{ groups[mds_group_name]|length > 0 }}"
+ - inventory_hostname == groups.mons|last
- include: secure_cluster.yml
when: