mirror of https://github.com/Aidaho12/haproxy-wi
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
parent
6bb5124b07
commit
9e791c7111
|
@ -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
|
- name: test to see if selinux is running
|
||||||
command: getenforce
|
command: getenforce
|
||||||
register: sestatus
|
register: sestatus
|
||||||
|
|
|
@ -91,6 +91,13 @@
|
||||||
http_proxy: "{{PROXY}}"
|
http_proxy: "{{PROXY}}"
|
||||||
https_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
|
- name: Enable and start service HAProxy
|
||||||
systemd:
|
systemd:
|
||||||
name: haproxy
|
name: haproxy
|
||||||
|
|
Loading…
Reference in New Issue