From a5e4359d0e1e0027d72e5790ad94ffc630373000 Mon Sep 17 00:00:00 2001 From: William Hirigoyen Date: Fri, 17 Nov 2023 15:51:33 +0100 Subject: [PATCH] #73871 ssl: no not execute haproxy tasks and reload if haproxy is disabled --- CHANGELOG.md | 1 + ssl/tasks/main.yml | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cd7e74f9..f1307a85 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,6 +39,7 @@ The **patch** part changes is incremented if multiple releases happen the same m * webapps/nextcloud: added check that nexctcloud uid is over 3000 * ProFTPd: set missing default listen IP for SFTP * apache: fix MaxRequestsPerChild value to be sync with wiki.e.o +* ssl: no not execute haproxy tasks and reload if haproxy is disabled ### Removed diff --git a/ssl/tasks/main.yml b/ssl/tasks/main.yml index 01398dec..cc092c84 100644 --- a/ssl/tasks/main.yml +++ b/ssl/tasks/main.yml @@ -39,5 +39,12 @@ tags: - ssl +- name: Collect facts about system services + service_facts: + - ansible.builtin.include: haproxy.yml - when: haproxy_check.rc == 0 + when: + - haproxy_check.rc == 0 + - ansible_facts.services['haproxy.service']['state'] == "running" + - ansible_facts.services['haproxy.service']['status'] == "enabled" +