add haproxy repo, custom config files & readme
This commit is contained in:
20
tasks/install_from_haproxy.yml
Normal file
20
tasks/install_from_haproxy.yml
Normal 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 }}"
|
||||
Reference in New Issue
Block a user