]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
make sure we use **fsid** in command
authorYin Jifeng <jifeng.yin@gmail.com>
Thu, 22 Jan 2015 12:09:06 +0000 (20:09 +0800)
committerYin Jifeng <jifeng.yin@gmail.com>
Thu, 22 Jan 2015 12:09:06 +0000 (20:09 +0800)
roles/ceph-mon/tasks/deploy_monitors.yml

index f2830d22093d44e0b286c3e8b45f6c734a23a0d2..59806cc218608da63bae219bb13eedf0fde830e5 100644 (file)
@@ -18,7 +18,7 @@
     mode=0644
 
 - name: Ceph monitor mkfs
-  command: "ceph-mon --mkfs -i {{ ansible_hostname }} --fsid {{ cluster_uuid.stdout }} --keyring /var/lib/ceph/tmp/keyring.mon.{{ ansible_hostname }} creates=/var/lib/ceph/mon/ceph-{{ ansible_hostname }}/keyring"
+  command: "ceph-mon --mkfs -i {{ ansible_hostname }} --fsid {{ fsid }} --keyring /var/lib/ceph/tmp/keyring.mon.{{ ansible_hostname }} creates=/var/lib/ceph/mon/ceph-{{ ansible_hostname }}/keyring"
 
 - name: Start and add that the monitor service to the init sequence
   service: >