]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
fix for nvme part path 1738/head
authoryanyx <yanyx@umcloud.com>
Wed, 2 Aug 2017 03:01:26 +0000 (11:01 +0800)
committeryanyx <yanyx@umcloud.com>
Thu, 3 Aug 2017 09:37:52 +0000 (17:37 +0800)
infrastructure-playbooks/make-osd-partitions.yml

index 7dee4cc9a9ad3944e84ff6cf11a3b1f5b238e428..0fc6892d2605b5d6fd94ca19307c33c3f61815e1 100644 (file)
       group: "{{ group | default('disk')}}"
     with_subelements:
       - "{{ devices }}"
-      - partitions
\ No newline at end of file
+      - partitions
+    when:
+      item.0.device_name | match('/dev/([hsv]d[a-z]{1,2}){1,2}$')
+
+  - name: change partitions ownership
+    file:
+      path: "/dev/{{item.0.device_name}}p{{item.1.index}}"
+      owner: "{{ owner | default('root')}}"
+      group: "{{ group | default('disk')}}"
+    with_subelements:
+      - "{{ devices }}"
+      - partitions
+    when:
+      item.0.device_name | match('/dev/(cciss/c[0-9]d[0-9]|nvme[0-9]n[0-9]){1,2}$')
+...
\ No newline at end of file