add haproxy repo, custom config files & readme

This commit is contained in:
Ludovic Cartier
2025-09-23 14:59:37 +02:00
parent 58ef95e654
commit 141ec62e2c
8 changed files with 123 additions and 18 deletions

View File

@@ -0,0 +1,20 @@
---
- name: haproxy | add HAProxy Debian repository key
ansible.builtin.get_url:
url: "{{ haproxy_debian_repo_key_url }}"
dest: /etc/apt/keyrings/haproxy-archive-keyring.gpg
mode: '0644'
- name: haproxy | add HAProxy Debian repository
ansible.builtin.apt_repository:
repo: "deb [signed-by=/etc/apt/keyrings/haproxy-archive-keyring.gpg] {{ haproxy_debian_repo_url }} {{ haproxy_debian_repo_distribution }}-backports-{{ haproxy_version }} {{ haproxy_debian_repo_component }}"
state: present
filename: 'haproxy'
update_cache: yes
- name: haproxy | install HAProxy from HAProxy Debian repo
ansible.builtin.apt:
name: haproxy
state: present
update_cache: yes
default_release: "{{ haproxy_debian_repo_distribution }}-backports-{{ haproxy_version }}"