remount: Do not remount SquashFS volumes
SquashFS volumes, naturally, cannot be remounted read-write.btop
parent
37a205e8a0
commit
921cf653b8
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue