remount: Do not remount SquashFS volumes

SquashFS volumes, naturally, cannot be remounted read-write.
btop
Dustin 2022-08-12 13:40:06 -05:00
parent 37a205e8a0
commit 921cf653b8
1 changed files with 3 additions and 0 deletions

View File

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