autofs home maps have a special syntax.

This commit is contained in:
Andrea Dell'Amico 2022-03-09 19:12:00 +01:00
parent 873d11d516
commit 105dfd8b32
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
2 changed files with 5 additions and 1 deletions

View File

@ -41,7 +41,7 @@ autofs_packages_el:
# path: without the initial / # path: without the initial /
autofs_maps: [] autofs_maps: []
# - { map_name: 'data', mountpoint_prefix: '/', path: 'data', nfs_server: 'nfs.example.com', remote_export: '/export' } # - { map_name: 'data', mountpoint_prefix: '/', path: 'data', nfs_server: 'nfs.example.com', remote_export: '/export', is_home: False }
# tmpreaper # tmpreaper
tmpreaper_install: False tmpreaper_install: False

View File

@ -1 +1,5 @@
{% if item.is_home is defined and item.is_home %}
* {{ item.nfs_server }}:{{ item.remote_export }}/&
{% else %}
{{ item.path }} / {{ item.nfs_server }}:{{ item.remote_export }} {{ item.path }} / {{ item.nfs_server }}:{{ item.remote_export }}
{% fi %}