haproxy_config_vars

This commit is contained in:
safouenebg 2024-06-04 08:13:21 +00:00
parent f0095830be
commit 57ecfe1c42

View File

@ -20,12 +20,13 @@ haproxy:
mode: tcp
haproxy_ips:
- ip: "{{ hostvars[inventory_hostname].ansible_host }}:80"
tls: "no"
- ip: "192.168.10.10:443"
tls: "yes"
tls: no
- ip: "{{ hostvars[inventory_hostname].ansible_host }}:443"
tls: yes
backends:
- name: "{{ k8s_backend_name }}"
frontend: "{{ k8s_frontend_name }}"
frontend: "safouene-felcloud.io"
mode: tcp
servers:
- "server {{ groups[group][0] }} {{ hostvars[groups[group][0]].ansible_host }}:{{ NodePort }} check"