Fix conditional
This commit is contained in:
parent
37237fea64
commit
a65f92c8c4
|
@ -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'"
|
||||
|
|
Reference in a new issue