Fix check for disk partition.
This commit is contained in:
parent
eab730e0ea
commit
f764745db6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue