Fix check for disk partition.

This commit is contained in:
Andreas B. Mundt 2020-12-09 12:08:00 +01:00
parent eab730e0ea
commit f764745db6

View file

@ -96,7 +96,7 @@
fstype: ext4
state: mounted
register: data_mounted
when: hostvars[inventory_hostname]['ansible_devices']['%s'|format(item)] | default(false)
when: item + '1' in hostvars[inventory_hostname]['ansible_devices']['%s'|format(item)]['partitions']
loop:
- sdb
- sde