]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
send fs commands to one mon 1335/head
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 28 Feb 2017 17:48:08 +0000 (12:48 -0500)
committerPatrick Donnelly <pdonnell@redhat.com>
Wed, 1 Mar 2017 16:05:56 +0000 (11:05 -0500)
Add-on to #1329.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
roles/ceph-mon/tasks/create_mds_filesystems.yml
roles/ceph-mon/tasks/main.yml

index 6e7b82d9835b62f6de2b17d8ffe8479e747e7c28..29bdb8efa7d47c21ec85c1b85aaeeb4b1e7747b4 100644 (file)
   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
index cf3d1f40fb44e050cd64849a6ad7548183b68f2b..9d7c5c81a62263957bb8b7d07557d43ef308727f 100644 (file)
@@ -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: