Change mounting options
This commit is contained in:
parent
f48fa3d874
commit
89751a3125
|
@ -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 }}"
|
||||||
|
|
Reference in a new issue