feat: HA ingress with keepalived and traefik

This commit is contained in:
Lino Silva
2026-03-30 21:53:19 +01:00
parent 97e7d65f42
commit 82a433fc26
5 changed files with 14 additions and 9 deletions
+1 -2
View File
@@ -7,11 +7,10 @@ proxmox_node: "pve"
template_name: "debian-13-cloudinit" template_name: "debian-13-cloudinit"
ansible_user: root ansible_user: root
ansible_python_interpreter: /opt/homebrew/bin/python3
docker_packages: docker_packages:
- docker.io - docker.io
- docker-compose-plugin - docker-compose
# Traefik configuration # Traefik configuration
domain: "example.com" # Change to your domain domain: "example.com" # Change to your domain
+1
View File
@@ -2,6 +2,7 @@ all:
hosts: hosts:
localhost: localhost:
ansible_connection: local ansible_connection: local
ansible_python_interpreter: /opt/homebrew/bin/python3
children: children:
edge: edge:
hosts: hosts:
+3 -7
View File
@@ -10,11 +10,7 @@
- vim - vim
- curl - curl
- git - git
- software-properties-common - apt-transport-https
- ca-certificates
- gnupg
state: present state: present
- name: Ensure user is in docker group
ansible.builtin.user:
name: "{{ ansible_user }}"
groups: docker
append: yes
+6
View File
@@ -9,3 +9,9 @@
name: docker name: docker
state: started state: started
enabled: yes enabled: yes
- name: Add user to docker group
ansible.builtin.user:
name: "{{ ansible_user }}"
groups: docker
append: yes
@@ -1,6 +1,7 @@
api: api:
dashboard: true dashboard: true
debug: true debug: true
insecure: true
entryPoints: entryPoints:
http: http:
@@ -12,6 +13,8 @@ entryPoints:
scheme: https scheme: https
https: https:
address: ":443" address: ":443"
traefik:
address: ":8080"
serversTransport: serversTransport:
insecureSkipVerify: true insecureSkipVerify: true