From 54bbcdb8169a0626057a3d76ff633d7d5f7c64c8 Mon Sep 17 00:00:00 2001 From: Alex Lehman Date: Sun, 25 Jun 2023 09:21:18 -0400 Subject: [PATCH] Check if ufw is installed before attempting to disable it (#807) Co-authored-by: Devin Buhl --- ansible/playbooks/cluster-prepare.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ansible/playbooks/cluster-prepare.yml b/ansible/playbooks/cluster-prepare.yml index 20b97dc4..0ef4d5e9 100644 --- a/ansible/playbooks/cluster-prepare.yml +++ b/ansible/playbooks/cluster-prepare.yml @@ -71,6 +71,10 @@ enabled: false masked: true state: stopped + register: stop_service + failed_when: + - stop_service.failed == true + - '"Could not find the requested service" not in stop_service.msg' - name: System Configuration (1) | Enable fstrim ansible.builtin.systemd: service: fstrim.timer