mirror of
https://gitea.0xace.cc/ansible-galaxy/haproxy.git
synced 2024-11-25 00:16:39 +00:00
fix for RedHat
This commit is contained in:
parent
15a1cd0cb4
commit
52b089fd4b
@ -14,12 +14,6 @@
|
||||
verbosity: 2
|
||||
when: haproxy_installed_package is defined
|
||||
|
||||
- name: Mask HAProxy before install
|
||||
ansible.builtin.systemd:
|
||||
name: "{{ haproxy_unit_name }}"
|
||||
masked: yes
|
||||
when: haproxy_package_name not in ansible_facts.packages or ansible_facts.packages[haproxy_package_name][0]['version'] != (haproxy_version|string + "-" + haproxy_version_build|string)
|
||||
|
||||
- name: "Install {{ haproxy_package_name }}-{{ haproxy_version }}-{{ haproxy_version_build }}"
|
||||
dnf:
|
||||
name: "{{ haproxy_package }}"
|
||||
@ -35,7 +29,7 @@
|
||||
notify: Restart HAProxy
|
||||
when:
|
||||
- haproxy_package_name in ansible_facts.packages
|
||||
- ansible_facts.packages[haproxy_package_name][0]['version'] != (haproxy_version|string + "-" + haproxy_version_build|string)
|
||||
- (ansible_facts.packages[haproxy_package_name][0]['version'] + ".el{{ ansible_distribution_major_version }}") != (haproxy_version|string + "-" + haproxy_version_build|string)
|
||||
|
||||
- name: Install python2-cryptography
|
||||
package:
|
||||
@ -141,4 +135,5 @@
|
||||
state: started
|
||||
enabled: yes
|
||||
daemon_reload: yes
|
||||
masked: no
|
||||
register: haproxy_enable_and_start
|
||||
|
@ -1,6 +1,6 @@
|
||||
haproxy_package_name: "haproxy"
|
||||
haproxy_version: "1.8.27"
|
||||
haproxy_version_build: "5"
|
||||
haproxy_version_build: "5.el{{ ansible_distribution_major_version }}"
|
||||
haproxy_package: "{{ haproxy_package_name }}-{{ haproxy_version }}-{{ haproxy_version_build }}"
|
||||
haproxy_package_name_regex: "{{ haproxy_package_name }}-{{ haproxy_version }}-{{ haproxy_version_build }}"
|
||||
haproxy_unit_name: "{{ haproxy_package_name }}"
|
||||
|
@ -1,6 +1,6 @@
|
||||
haproxy_package_name: "haproxy"
|
||||
haproxy_version: "2.4.17"
|
||||
haproxy_version_build: "3"
|
||||
haproxy_version_build: "3.el{{ ansible_distribution_major_version }}"
|
||||
haproxy_package: "{{ haproxy_package_name }}-{{ haproxy_version }}-{{ haproxy_version_build }}"
|
||||
haproxy_package_name_regex: "{{ haproxy_package_name }}-{{ haproxy_version }}-{{ haproxy_version_build }}"
|
||||
haproxy_unit_name: "{{ haproxy_package_name }}"
|
||||
|
Loading…
Reference in New Issue
Block a user