diff --git a/roles/usb-lib/tasks/main.yml b/roles/usb-lib/tasks/main.yml index 2d1cefcba..2781cd7ce 100644 --- a/roles/usb-lib/tasks/main.yml +++ b/roles/usb-lib/tasks/main.yml @@ -23,6 +23,12 @@ - { src: 'usbmount@.service.j2' , dest: '/etc/systemd/system/usbmount@.service' } - { src: 'usbmount.rules.j2' , dest: '/etc/udev/rules.d/usbmount.rules' } +- name: Enable exfat and ntfs + lineinfile: + regexp: '^FILESYSTEMS.*' + line: 'FILESYSTEMS="vfat ext2 ext3 ext4 hfsplus exfat fuseblk ntfs"' + dest: /etc/usbmount/usbmount.conf + - name: Copy umount file to usbmount when enabled template: src: umount.d/70-usb-library diff --git a/roles/network/templates/network/usbmount.rules.j2 b/roles/usb-lib/templates/usbmount.rules.j2 similarity index 100% rename from roles/network/templates/network/usbmount.rules.j2 rename to roles/usb-lib/templates/usbmount.rules.j2 diff --git a/roles/network/templates/network/usbmount@.service.j2 b/roles/usb-lib/templates/usbmount@.service.j2 similarity index 100% rename from roles/network/templates/network/usbmount@.service.j2 rename to roles/usb-lib/templates/usbmount@.service.j2