2024-04-01 21:59:48 +00:00
|
|
|
---
|
2024-03-17 09:57:02 +00:00
|
|
|
- name: "HAProxy"
|
|
|
|
block:
|
|
|
|
- name: "Include ednz_cloud.deploy_haproxy"
|
|
|
|
ansible.builtin.include_role:
|
|
|
|
name: ednz_cloud.deploy_haproxy
|
|
|
|
|
|
|
|
- name: "Include ednz_cloud.deploy_keepalived"
|
|
|
|
ansible.builtin.include_role:
|
|
|
|
name: ednz_cloud.deploy_keepalived
|
2024-03-22 00:00:04 +00:00
|
|
|
|
|
|
|
- name: "Register haproxy services in consul"
|
|
|
|
when: enable_consul | bool
|
|
|
|
block:
|
|
|
|
- name: "Register haproxy services in consul"
|
|
|
|
community.general.consul:
|
2024-05-03 20:31:38 +00:00
|
|
|
token: "{{ _credentials.consul.root_token.secret_id }}"
|
2024-06-25 13:16:42 +00:00
|
|
|
host: "127.0.0.1"
|
|
|
|
scheme: "{{ consul_api_scheme }}"
|
|
|
|
port: "{{ consul_api_port[consul_api_scheme] }}"
|
|
|
|
validate_certs: false
|
2024-03-22 00:00:04 +00:00
|
|
|
service_name: haproxy
|
|
|
|
service_port: 80
|
|
|
|
interval: 20s
|
|
|
|
http: http://localhost:9000/health
|