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:
- /dev/mapper/{{ hdd_name }}
- /dev/mapper/{{ ssd_name }}
when: ansible_mounts | selectattr('device', 'eq', item) | length == 0
- name: Mount filesystems
ansible.posix.mount:
src: "{{ item.dev }}"
path: "{{ item.path }}"
fstype: ext4
fstab: /tmp/fstab.ansible
state: mounted
state: ephemeral
loop:
- dev: /dev/mapper/{{ hdd_name }}
path: "{{ hdd_mount_point }}"