split variables for RedHat and Debain os family

This commit is contained in:
ace
2023-04-16 03:27:24 +03:00
parent e230bae808
commit 412846751a
9 changed files with 326 additions and 111 deletions

View File

@ -1,7 +1,14 @@
---
- name: Reload HAProxy
systemd:
name: haproxy
name: "{{ haproxy_unit_name }}"
state: reloaded
daemon_reload: yes
when: haproxy_enable_and_start.changed
- name: Restart HAProxy
systemd:
name: "{{ haproxy_unit_name }}"
state: reloaded
daemon_reload: yes
when: haproxy_enable_and_start.changed