From 3d07756e0a494d3481563f827adf3991db9aa7c1 Mon Sep 17 00:00:00 2001 From: Tyler Hale Date: Thu, 1 Aug 2024 13:00:45 -0600 Subject: [PATCH] Disabling ip creation by default --- roles/haproxy/defaults/main.yml | 2 +- roles/haproxy/tasks/main.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/haproxy/defaults/main.yml b/roles/haproxy/defaults/main.yml index ad33d36..5257fc0 100644 --- a/roles/haproxy/defaults/main.yml +++ b/roles/haproxy/defaults/main.yml @@ -28,7 +28,7 @@ haproxy_shared_priority: 100 haproxy_bind_adapter: "eth0" haproxy_keepalived_adapter: "eth0" haproxy_keepalived_adapter_vlan: "" -haproxy_keepalived_ip: 172.16.10.1/24 +haproxy_keepalived_ip: "" # Cerbot configuration haproxy_certbot_enable: true diff --git a/roles/haproxy/tasks/main.yml b/roles/haproxy/tasks/main.yml index 34cec5d..de90b53 100644 --- a/roles/haproxy/tasks/main.yml +++ b/roles/haproxy/tasks/main.yml @@ -30,7 +30,7 @@ autoconnect: yes type: vlan state: present - when: (haproxy_keepalived_adapter_vlan != "") and (haproxy_keepalived_ip is defined) + when: (haproxy_keepalived_adapter_vlan != "") and (haproxy_keepalived_ip != "") - name: Add IP nmcli: @@ -39,7 +39,7 @@ autoconnect: yes type: ethernet state: present - when: (haproxy_keepalived_adapter_vlan == "") and (haproxy_keepalived_ip is defined) + when: (haproxy_keepalived_adapter_vlan == "") and (haproxy_keepalived_ip != "") - name: Enable firewall rule for vrrp firewalld: