Fix the sysctl behaviour

This commit is contained in:
Andrea Dell'Amico 2023-11-10 18:02:53 +01:00
parent 3340e8f779
commit c9d6d35dda
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
2 changed files with 2 additions and 1 deletions

View File

@ -7,7 +7,7 @@ haproxy_ubuntu_latest_repo: "ppa:vbernat/haproxy-{{ haproxy_version }}"
haproxy_pkg_state: present
haproxy_enabled: True
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_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'

View File

@ -10,6 +10,7 @@
sysctl: name={{ item }} value={{ haproxy_sysctl_conntrack_max }} reload=yes state=present
with_items:
- net.nf_conntrack_max
when: iptables_persistent_enabled is defined and iptables_persistent_enabled
tags: [ 'haproxy', 'haproxy_sysctl' ]