Fix the sysctl behaviour
This commit is contained in:
parent
3340e8f779
commit
c9d6d35dda
|
@ -7,7 +7,7 @@ haproxy_ubuntu_latest_repo: "ppa:vbernat/haproxy-{{ haproxy_version }}"
|
||||||
haproxy_pkg_state: present
|
haproxy_pkg_state: present
|
||||||
haproxy_enabled: True
|
haproxy_enabled: True
|
||||||
haproxy_loglevel: info
|
haproxy_loglevel: info
|
||||||
haproxy_k_bind_non_local_ip: True
|
haproxy_k_bind_non_local_ip:"{% if keepalived_enabled is defined and keepalived_enabled %}true{% else %}false{% endif %}"
|
||||||
haproxy_install_dataplane_api: True
|
haproxy_install_dataplane_api: True
|
||||||
haproxy_dataplane_api_version: '{{ haproxy_version }}.0'
|
haproxy_dataplane_api_version: '{{ haproxy_version }}.0'
|
||||||
haproxy_dataplane_api_download_url: 'https://github.com/haproxytech/dataplaneapi/releases/download/v{{ haproxy_dataplane_api_version }}/dataplaneapi_{{ haproxy_dataplane_api_version }}_Linux_x86_64.tar.gz'
|
haproxy_dataplane_api_download_url: 'https://github.com/haproxytech/dataplaneapi/releases/download/v{{ haproxy_dataplane_api_version }}/dataplaneapi_{{ haproxy_dataplane_api_version }}_Linux_x86_64.tar.gz'
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
sysctl: name={{ item }} value={{ haproxy_sysctl_conntrack_max }} reload=yes state=present
|
sysctl: name={{ item }} value={{ haproxy_sysctl_conntrack_max }} reload=yes state=present
|
||||||
with_items:
|
with_items:
|
||||||
- net.nf_conntrack_max
|
- net.nf_conntrack_max
|
||||||
|
when: iptables_persistent_enabled is defined and iptables_persistent_enabled
|
||||||
|
|
||||||
tags: [ 'haproxy', 'haproxy_sysctl' ]
|
tags: [ 'haproxy', 'haproxy_sysctl' ]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue