diff --git a/defaults/main.yml b/defaults/main.yml index 9bb3452..1f4e86d 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -41,7 +41,7 @@ autofs_packages_el: # path: without the initial / 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_install: False diff --git a/templates/auto.data.j2 b/templates/auto.data.j2 index 36d0326..4decfd4 100644 --- a/templates/auto.data.j2 +++ b/templates/auto.data.j2 @@ -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 }} +{% fi %} \ No newline at end of file