Skip to content

Commit

Permalink
Stop role for usuported HAProxy version on Ubuntu 24.04
Browse files Browse the repository at this point in the history
Signed-off-by: Norman Ziegner <n.ziegner@hzdr.de>
  • Loading branch information
Normo committed Sep 9, 2024
1 parent f51611d commit eb71947
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions roles/haproxy/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
ansible_facts.distribution_release | lower == 'bookworm' and haproxy_version | regex_search('\\d+\\.\\d+') is version('2.4', '==') or
ansible_facts.distribution_release | lower == 'buster' and haproxy_version | regex_search('\\d+\\.\\d+') is version('2.8', '==')
- name: "Stop role for unsupported HAProxy / Ubuntu combinations"
ansible.builtin.meta: "end_host"
when: >-
ansible_facts.distribution_release == '24.04' and haproxy_version | regex_search('\\d+\\.\\d+') is version('2.9', '<') or
- name: "Enable ip_forward."
become: true
ansible.posix.sysctl:
Expand Down

0 comments on commit eb71947

Please sign in to comment.