mirror of
https://github.com/mrlesmithjr/ansible-manage-lvm.git
synced 2026-09-06 23:48:12 +03:00
Merge pull request #40 from Tcharl/id2
use xfs_info on mountpoint instead of lvm
This commit is contained in:
+1
-1
@@ -44,7 +44,7 @@
|
|||||||
- name: lvm | check already converted
|
- name: lvm | check already converted
|
||||||
# at least xfs is executed twice if the partition has changed in the meantime
|
# at least xfs is executed twice if the partition has changed in the meantime
|
||||||
# then it tries to recreate the fs on the mounted fs which indeed fails...
|
# then it tries to recreate the fs on the mounted fs which indeed fails...
|
||||||
shell: "xfs_info /dev/{{ vg.vgname }}/{{ lv.lvname }} | grep -c 'ftype=1'"
|
shell: "xfs_info {{ lv.mntp }} | grep -c 'ftype=1'"
|
||||||
become: yes
|
become: yes
|
||||||
loop: "{{ vg.lvnames }}"
|
loop: "{{ vg.lvnames }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
|
|||||||
Reference in New Issue
Block a user