62 lines
1.3 KiB
YAML
62 lines
1.3 KiB
YAML
|
|
- name: Generate Automounts
|
|
include_role:
|
|
name: alysoid.ansible-systemd-mount
|
|
vars:
|
|
catena_mount:
|
|
- name: Mount {{ mount_point }}
|
|
options:
|
|
Mount:
|
|
What: /dev/backup/{{ mount_point }}
|
|
Where: /backup/{{ 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: /backup/{{ mount_point }}
|
|
TimeoutIdleSec: 30
|
|
Unit:
|
|
After: network.target
|
|
Install:
|
|
WantedBy: network.target
|
|
loop:
|
|
- yori
|
|
- lenny
|
|
- auto
|
|
- maketank
|
|
- truhe
|
|
loop_control:
|
|
loop_var: mount_point
|
|
|
|
|
|
|
|
# [Unit]
|
|
# Description=Automount /backup/yori
|
|
# After=network.target
|
|
|
|
# [Automount]
|
|
# Where=/backup/yori
|
|
# TimeoutIdleSec=30
|
|
|
|
# [Install]
|
|
# WantedBy=network.target
|
|
# [Unit]
|
|
# Description=Mount /backup/yori
|
|
# After=network.target
|
|
# #Requires=backup-yori.automount
|
|
# #After=backup-yori.automount
|
|
|
|
# [Mount]
|
|
# What=/dev/backup/yori
|
|
# Where=/backup/yori
|
|
# Type=btrfs
|
|
# Options=defaults,compress=lzo,space_cache=v2
|
|
|
|
# [Install]
|
|
# WantedBy=network.target |