21 lines
796 B
YAML
21 lines
796 B
YAML
---
|
|
- 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 }}"
|