haproxy: simplify versions tracking

This commit is contained in:
ace
2024-05-16 18:20:18 +03:00
parent 3c8cb19285
commit d6457d12da
12 changed files with 31 additions and 68 deletions

View File

@ -4,11 +4,13 @@
name: "{{ haproxy_unit_name }}"
state: reloaded
daemon_reload: yes
when: haproxy_enable_and_start.changed
masked: no
when: not haproxy_enable_and_start.changed
- name: Restart HAProxy
systemd:
name: "{{ haproxy_unit_name }}"
state: reloaded
state: restarted
daemon_reload: yes
when: haproxy_enable_and_start.changed
masked: no
when: not haproxy_enable_and_start.changed