homelab/ansible/group_vars/NAS/nfs

15 lines
900 B
Plaintext
Raw Normal View History

2024-02-26 17:54:22 +00:00
nfs_cluster_list: "{% for server in groups['all']%} {% if hostvars[server]['ansible_default_ipv4']['address'] is defined %} {{hostvars[server]['ansible_' + hostvars[server]['nfs_iface']|default('')].ipv4.address|default(hostvars[server]['ansible_default_ipv4']['address'],true)}}(rw,no_root_squash,crossmnt,async,insecure_locks,sec=sys) {% endif %} {%endfor%}"
2024-01-13 17:32:02 +00:00
nfs_consul_service: true
nfs_bind_target: "/exports"
2022-12-10 10:07:18 +00:00
nfs_exports:
2024-02-20 18:31:36 +00:00
- "{{ nas_bind_target }} *(fsid=0,insecure,no_subtree_check)"
- "{{ nas_bind_target }}/nomad {{nfs_cluster_list}}"
- "{{ nas_bind_target }}/download {{nfs_cluster_list}}"
- "{{ nas_bind_target }}/music {{nfs_cluster_list}}"
2024-02-29 20:36:35 +00:00
- "{{ nas_bind_target }}/media {{nfs_cluster_list}}"
2024-02-20 18:31:36 +00:00
- "{{ nas_bind_target }}/photo {{nfs_cluster_list}}"
- "{{ nas_bind_target }}/homes {{nfs_cluster_list}}"
- "{{ nas_bind_target }}/ebook {{nfs_cluster_list}}"