Compare commits
2 commits
c7b4e85d96
...
388f62c440
Author | SHA1 | Date | |
---|---|---|---|
388f62c440 | |||
3d07756e0a |
3 changed files with 6 additions and 3 deletions
|
@ -28,7 +28,7 @@ haproxy_shared_priority: 100
|
||||||
haproxy_bind_adapter: "eth0"
|
haproxy_bind_adapter: "eth0"
|
||||||
haproxy_keepalived_adapter: "eth0"
|
haproxy_keepalived_adapter: "eth0"
|
||||||
haproxy_keepalived_adapter_vlan: ""
|
haproxy_keepalived_adapter_vlan: ""
|
||||||
haproxy_keepalived_ip: 172.16.10.1/24
|
haproxy_keepalived_ip: ""
|
||||||
|
|
||||||
# Cerbot configuration
|
# Cerbot configuration
|
||||||
haproxy_certbot_enable: true
|
haproxy_certbot_enable: true
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
name: certbot
|
name: certbot
|
||||||
executable: pip3
|
executable: pip3
|
||||||
state: latest
|
state: latest
|
||||||
|
tags: packages
|
||||||
|
|
||||||
- name: Place certbot script
|
- name: Place certbot script
|
||||||
template:
|
template:
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
- policycoreutils-python-utils
|
- policycoreutils-python-utils
|
||||||
- NetworkManager
|
- NetworkManager
|
||||||
state: latest
|
state: latest
|
||||||
|
tags: packages
|
||||||
|
|
||||||
- name: Install haproxy cluster packages
|
- name: Install haproxy cluster packages
|
||||||
package:
|
package:
|
||||||
|
@ -15,6 +16,7 @@
|
||||||
- haproxy
|
- haproxy
|
||||||
- firewalld
|
- firewalld
|
||||||
state: latest
|
state: latest
|
||||||
|
tags: packages
|
||||||
|
|
||||||
- name: "### Certbot configuration ###"
|
- name: "### Certbot configuration ###"
|
||||||
include_tasks:
|
include_tasks:
|
||||||
|
@ -30,7 +32,7 @@
|
||||||
autoconnect: yes
|
autoconnect: yes
|
||||||
type: vlan
|
type: vlan
|
||||||
state: present
|
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
|
- name: Add IP
|
||||||
nmcli:
|
nmcli:
|
||||||
|
@ -39,7 +41,7 @@
|
||||||
autoconnect: yes
|
autoconnect: yes
|
||||||
type: ethernet
|
type: ethernet
|
||||||
state: present
|
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
|
- name: Enable firewall rule for vrrp
|
||||||
firewalld:
|
firewalld:
|
||||||
|
|
Loading…
Reference in a new issue