]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
allow dash in cluster name 816/head
authorMarcus Pamelia <marcus.pamelia@trioptima.com>
Sun, 29 May 2016 07:20:46 +0000 (09:20 +0200)
committerMarcus Pamelia <marcus.pamelia@trioptima.com>
Sun, 29 May 2016 07:20:46 +0000 (09:20 +0200)
roles/ceph-osd/tasks/activate_osds.yml

index 5011f856bcbcc55587139a3794fda23b3caa7376..34dde8f5ef6835ed352e8ee3d5e282c0de2320e9 100644 (file)
@@ -69,7 +69,7 @@
     - is_before_infernalis
 
 - name: get osd id (for or after infernalis)
-  shell: "ls /var/lib/ceph/osd/ | grep '-' | cut -d '-' -f 2"
+  shell: 'ls /var/lib/ceph/osd/ | grep -oP "\d+$"'
   changed_when: false
   failed_when: false
   register: osd_id