From 89751a3125c21ed7c7513aec1ed0287f9fe8902c Mon Sep 17 00:00:00 2001 From: Sam Al-Sapti Date: Wed, 19 Apr 2023 21:00:10 +0200 Subject: [PATCH] Change mounting options --- roles/os_config/tasks/disks.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/roles/os_config/tasks/disks.yml b/roles/os_config/tasks/disks.yml index 9b1e6d2..cff7189 100644 --- a/roles/os_config/tasks/disks.yml +++ b/roles/os_config/tasks/disks.yml @@ -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 }}"