Systemd mounts for auto02

This commit is contained in:
2025-11-18 12:36:33 +01:00
parent 2d16057705
commit d0114aeffb
4 changed files with 147 additions and 54 deletions

View File

@@ -0,0 +1,31 @@
- name: Generate Automounts
include_role:
name: alysoid.ansible-systemd-mount
vars:
catena_mount:
- name: Mount {{ mount_point }}
options:
Mount:
What: /dev/vg01/{{ mount_point }}
Where: /srv/{{ mount_point }}
Type: btrfs
Options: defaults,compress=lzo,space_cache=v2
Unit:
After: network.target
Install:
WantedBy: network.target
catena_automount:
- name: Automount {{ mount_point }}
options:
Automount:
Where: /srv/{{ mount_point }}
TimeoutIdleSec: 90
Unit:
After: network.target
Install:
WantedBy: smb.service
loop:
- pub
loop_control:
loop_var: mount_point