Files
ansible/roles/file_server/tasks/main.yaml

31 lines
795 B
YAML

- 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