v8.1.3: Move HAProxy service file task to installation.yml

Relocated the task for modifying the HAProxy service file from configure.yml to installation.yml to ensure proper execution during the installation phase. This change enhances task organization and aligns with Ansible role structures.
pull/410/head
Aidaho 2024-12-11 05:38:42 +03:00
parent 6bb5124b07
commit 9e791c7111
2 changed files with 7 additions and 7 deletions

View File

@ -1,10 +1,3 @@
- name: Change wrong HAProxy service file
template:
src: haproxy.service.j2
dest: /usr/lib/systemd/system/haproxy.service
mode: 0644
when: (ansible_facts['os_family'] == "RedHat" or ansible_facts['os_family'] == 'CentOS') and haproxy_from_wi is defined
- name: test to see if selinux is running
command: getenforce
register: sestatus

View File

@ -91,6 +91,13 @@
http_proxy: "{{PROXY}}"
https_proxy: "{{PROXY}}"
- name: Change wrong HAProxy service file
template:
src: haproxy.service.j2
dest: /usr/lib/systemd/system/haproxy.service
mode: 0644
when: (ansible_facts['os_family'] == "RedHat" or ansible_facts['os_family'] == 'CentOS') and haproxy_from_wi is defined
- name: Enable and start service HAProxy
systemd:
name: haproxy