Merge pull request #1564 from arodd/master

Fixing partition detection regex for FusionIO devices.
pull/1469/head
Sébastien Han 2017-05-24 12:07:40 +02:00 committed by GitHub
commit f75d36ce18
3 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@
static: False static: False
- name: check the journal device is partition - name: check the journal device is partition
shell: "readlink -f {{ item }} | egrep '/dev/([hsv]d[a-z]{1,2}|cciss/c[0-9]d[0-9]p|nvme[0-9]n[0-9]p)[0-9]{1,2}|fio[a-z]{1,2}$'" shell: "readlink -f {{ item }} | egrep '/dev/([hsv]d[a-z]{1,2}|cciss/c[0-9]d[0-9]p|nvme[0-9]n[0-9]p)[0-9]{1,2}|fio[a-z]{1,2}[0-9]{1,2}$'"
with_items: "{{ raw_journal_devices }}" with_items: "{{ raw_journal_devices }}"
changed_when: false changed_when: false
failed_when: false failed_when: false

View File

@ -1,6 +1,6 @@
--- ---
- name: check if the device is a partition (autodiscover disks) - name: check if the device is a partition (autodiscover disks)
shell: "readlink -f /dev/{{ item.key }} | egrep '/dev/([hsv]d[a-z]{1,2}|cciss/c[0-9]d[0-9]p|nvme[0-9]n[0-9]p)[0-9]{1,2}|fio[a-z]{1,2}$'" shell: "readlink -f /dev/{{ item.key }} | egrep '/dev/([hsv]d[a-z]{1,2}|cciss/c[0-9]d[0-9]p|nvme[0-9]n[0-9]p)[0-9]{1,2}|fio[a-z]{1,2}[0-9]{1,2}$'"
with_dict: "{{ ansible_devices }}" with_dict: "{{ ansible_devices }}"
changed_when: false changed_when: false
failed_when: false failed_when: false

View File

@ -1,6 +1,6 @@
--- ---
- name: check if the device is a partition - name: check if the device is a partition
shell: "readlink -f {{ item }} | egrep '/dev/([hsv]d[a-z]{1,2}|cciss/c[0-9]d[0-9]p|nvme[0-9]n[0-9]p)[0-9]{1,2}|fio[a-z]{1,2}$'" shell: "readlink -f {{ item }} | egrep '/dev/([hsv]d[a-z]{1,2}|cciss/c[0-9]d[0-9]p|nvme[0-9]n[0-9]p)[0-9]{1,2}|fio[a-z]{1,2}[0-9]{1,2}$'"
with_items: "{{ devices }}" with_items: "{{ devices }}"
changed_when: false changed_when: false
failed_when: false failed_when: false