fix: no issue on nfs cluster if one device is down
This commit is contained in:
parent
d37fe78e39
commit
f32c0d1e40
@ -1,4 +1,4 @@
|
|||||||
nfs_cluster_list: "{% for server in groups['all']%} {{hostvars[server]['ansible_' + hostvars[server]['nfs_iface']|default('')].ipv4.address|default(hostvars[server]['ansible_default_ipv4']['address'],true)}}(rw,no_root_squash,async,insecure_locks,sec=sys) {%endfor%}"
|
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,async,insecure_locks,sec=sys) {% endif %} {%endfor%}"
|
||||||
nfs_consul_service: true
|
nfs_consul_service: true
|
||||||
nfs_bind_target: "/exports"
|
nfs_bind_target: "/exports"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user