Enable ip_nonlocal_bind for IPv6 in addition to IPv4
Set net.ipv6.ip_nonlocal_bind in addition to net.ipv4.ip_nonlocal_bind to allow for haproxy to bind to a IPv6 VIP Change-Id: I9f69dbb024e2f4aa660c1f5f968ed201dc3423c2
This commit is contained in:
parent
38f7ec04bc
commit
826741f1f1
@ -15,11 +15,14 @@
|
||||
|
||||
- name: Make haproxy bindable on non local addresses
|
||||
sysctl:
|
||||
name: net.ipv4.ip_nonlocal_bind
|
||||
name: "{{ item }}"
|
||||
value: 1
|
||||
sysctl_set: yes
|
||||
state: present
|
||||
when: haproxy_bind_on_non_local | bool
|
||||
with_items:
|
||||
- "net.ipv4.ip_nonlocal_bind"
|
||||
- "net.ipv6.ip_nonlocal_bind"
|
||||
tags:
|
||||
- haproxy-non-local-bind-config
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user