From: Patrick Donnelly Date: Tue, 28 Feb 2017 17:48:08 +0000 (-0500) Subject: send fs commands to one mon X-Git-Tag: v2.2.0rc1~14^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1335%2Fhead;p=ceph-ansible.git send fs commands to one mon Add-on to #1329. Signed-off-by: Patrick Donnelly --- diff --git a/roles/ceph-mon/tasks/create_mds_filesystems.yml b/roles/ceph-mon/tasks/create_mds_filesystems.yml index 6e7b82d98..29bdb8efa 100644 --- a/roles/ceph-mon/tasks/create_mds_filesystems.yml +++ b/roles/ceph-mon/tasks/create_mds_filesystems.yml @@ -15,14 +15,11 @@ 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 diff --git a/roles/ceph-mon/tasks/main.yml b/roles/ceph-mon/tasks/main.yml index cf3d1f40f..9d7c5c81a 100644 --- a/roles/ceph-mon/tasks/main.yml +++ b/roles/ceph-mon/tasks/main.yml @@ -15,6 +15,7 @@ - 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: