Systemd mounts for auto02
This commit is contained in:
31
roles/file_server/tasks/main.yaml
Normal file
31
roles/file_server/tasks/main.yaml
Normal 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
|
||||
Reference in New Issue
Block a user