From 4a1177e420fd9632f77d07ce0a19f89a1515f8eb Mon Sep 17 00:00:00 2001 From: Charlie Mordant Date: Tue, 21 Apr 2020 19:01:29 +0200 Subject: [PATCH] use xfs_info on mountpoint instead of lvm --- tasks/create_fs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/create_fs.yml b/tasks/create_fs.yml index dbfea2d..1656131 100644 --- a/tasks/create_fs.yml +++ b/tasks/create_fs.yml @@ -44,7 +44,7 @@ - name: lvm | check already converted # 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... - shell: "xfs_info /dev/{{ vg.vgname }}/{{ lv.lvname }} | grep -c 'ftype=1'" + shell: "xfs_info {{ lv.mntp }} | grep -c 'ftype=1'" become: yes loop: "{{ vg.lvnames }}" loop_control: