nfs/export: Use systemd_escape_mount instead of custom regex_replace

dehydrated
Felix Stupp 4 years ago
parent c102cf72d0
commit 6b40c8d8aa
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -4,7 +4,7 @@ export_name: "{{ real_path | basename }}"
# real_path: "/exported/path"
export_path: "{{ global_nfs_directory }}/{{ export_name }}"
export_config_name: "{{ export_name | regex_replace('/', '-') }}"
mount_unit_name: "{{ export_path | regex_replace('^/') | regex_replace('/', '-') }}.mount"
mount_unit_name: "{{ export_path | systemd_escape_mount }}"
export_hosts:
- "*"

Loading…
Cancel
Save