Compare commits
No commits in common. "388f62c44058835aaef6cf927b0a6b50e6ea737d" and "c7b4e85d96cb520d08e13d27f2c090327512ec0d" have entirely different histories.
388f62c440
...
c7b4e85d96
3 changed files with 3 additions and 6 deletions
|
@ -28,7 +28,7 @@ haproxy_shared_priority: 100
|
|||
haproxy_bind_adapter: "eth0"
|
||||
haproxy_keepalived_adapter: "eth0"
|
||||
haproxy_keepalived_adapter_vlan: ""
|
||||
haproxy_keepalived_ip: ""
|
||||
haproxy_keepalived_ip: 172.16.10.1/24
|
||||
|
||||
# Cerbot configuration
|
||||
haproxy_certbot_enable: true
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
name: certbot
|
||||
executable: pip3
|
||||
state: latest
|
||||
tags: packages
|
||||
|
||||
- name: Place certbot script
|
||||
template:
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
- policycoreutils-python-utils
|
||||
- NetworkManager
|
||||
state: latest
|
||||
tags: packages
|
||||
|
||||
- name: Install haproxy cluster packages
|
||||
package:
|
||||
|
@ -16,7 +15,6 @@
|
|||
- haproxy
|
||||
- firewalld
|
||||
state: latest
|
||||
tags: packages
|
||||
|
||||
- name: "### Certbot configuration ###"
|
||||
include_tasks:
|
||||
|
@ -32,7 +30,7 @@
|
|||
autoconnect: yes
|
||||
type: vlan
|
||||
state: present
|
||||
when: (haproxy_keepalived_adapter_vlan != "") and (haproxy_keepalived_ip != "")
|
||||
when: (haproxy_keepalived_adapter_vlan != "") and (haproxy_keepalived_ip is defined)
|
||||
|
||||
- name: Add IP
|
||||
nmcli:
|
||||
|
@ -41,7 +39,7 @@
|
|||
autoconnect: yes
|
||||
type: ethernet
|
||||
state: present
|
||||
when: (haproxy_keepalived_adapter_vlan == "") and (haproxy_keepalived_ip != "")
|
||||
when: (haproxy_keepalived_adapter_vlan == "") and (haproxy_keepalived_ip is defined)
|
||||
|
||||
- name: Enable firewall rule for vrrp
|
||||
firewalld:
|
||||
|
|
Loading…
Reference in a new issue