remount: Do not remount SquashFS volumes

SquashFS volumes, naturally, cannot be remounted read-write.
This commit is contained in:
2022-08-12 13:40:06 -05:00
parent 37a205e8a0
commit 921cf653b8

View File

@@ -11,6 +11,8 @@
- /
- /usr
- /opt
no_remount_fstype:
- squashfs
tasks:
- name: remount filesystems
command:
@@ -20,6 +22,7 @@
{{
ansible_mounts
| selectattr('mount', 'in', remount_fs)
| rejectattr('fstype', 'in', no_remount_fstype)
| list
}}
when: not item.options.startswith(remount_state)