23 lines
851 B
Plaintext
23 lines
851 B
Plaintext
nfs_cluster_list: "{% for server in groups['all']%}{{ hostvars[server]['ansible_default_ipv4']['address'] }}(rw,no_root_squash,async,insecure_locks,sec=sys) {%endfor%}"
|
|
nfs_consul_service: true
|
|
nfs_bind_target: "/exports"
|
|
nfs_bind_source:
|
|
- /var/local/volume1/nomad
|
|
- /var/local/volume1/music
|
|
- /var/local/volume1/media
|
|
- /var/local/volume1/photo
|
|
- /var/local/volume1/homes
|
|
- /var/local/volume1/ebook
|
|
|
|
|
|
nfs_exports:
|
|
- "{{nfs_bind_target }} *(fsid=0,insecure,no_subtree_check)"
|
|
- "{{ nfs_bind_target }}/nomad {{nfs_cluster_list}}"
|
|
- "{{ nfs_bind_target }}/music {{nfs_cluster_list}}"
|
|
- "{{ nfs_bind_target }}/media {{nfs_cluster_list}}"
|
|
- "{{ nfs_bind_target }}/photo {{nfs_cluster_list}}"
|
|
- "{{ nfs_bind_target }}/homes {{nfs_cluster_list}}"
|
|
- "{{ nfs_bind_target }}/ebook {{nfs_cluster_list}}"
|
|
|
|
|