Fix conditional

This commit is contained in:
Sam A. 2022-12-25 20:45:31 +01:00
parent 37237fea64
commit a65f92c8c4
Signed by: samsapti
GPG Key ID: CBBBE7371E81C4EA
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@
path: "{{ hdd_mount_point }}"
- dev: "/dev/mapper/{{ ssd_name }}"
path: "{{ ssd_mount_point }}"
when: mounted_devices.stdout_lines | select('search', item) | list | length == 0
when: mounted_devices.stdout_lines | select('search', item.dev) | list | length == 0
- name: Check if swapfile is mounted
shell: "swapon | grep -q '{{ ssd_mount_point }}/swapfile'"