Change mounting options

This commit is contained in:
Sam A. 2023-04-19 21:00:10 +02:00
parent f48fa3d874
commit 89751a3125
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA

View file

@ -22,15 +22,13 @@
loop: loop:
- /dev/mapper/{{ hdd_name }} - /dev/mapper/{{ hdd_name }}
- /dev/mapper/{{ ssd_name }} - /dev/mapper/{{ ssd_name }}
when: ansible_mounts | selectattr('device', 'eq', item) | length == 0
- name: Mount filesystems - name: Mount filesystems
ansible.posix.mount: ansible.posix.mount:
src: "{{ item.dev }}" src: "{{ item.dev }}"
path: "{{ item.path }}" path: "{{ item.path }}"
fstype: ext4 fstype: ext4
fstab: /tmp/fstab.ansible state: ephemeral
state: mounted
loop: loop:
- dev: /dev/mapper/{{ hdd_name }} - dev: /dev/mapper/{{ hdd_name }}
path: "{{ hdd_mount_point }}" path: "{{ hdd_mount_point }}"