ฉันกำลังพยายามเขียน Playbook เพื่อฟอร์แมตไดรฟ์ข้อมูลบางประเภท แต่ฉันไม่สามารถตัดสินใจเลือกไดรฟ์ที่ถูกต้องได้
นี่คือสิ่งที่ฉันกำลังทำอยู่
---
- hosts: all
gather_facts: no
remote_user: root
tasks:
- name: create file system on storage lun
filesystem: fstype=xfs dev=/dev/mapper/mpath*
ฉันกำลังพยายามจับคู่อักขระตัวเดียวหลัง mpath แต่ * ดูเหมือนจะไม่ทำงาน