From 831c41b79273d112367811331faab034e4d81cf1 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Wed, 10 Sep 2025 15:31:19 +0200 Subject: Convert changed_when value to a boolean. As of ansible 2.19 a non-zero value is no longer converted to a boolean. --- roles/common/tasks/firewall.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/common/tasks/firewall.yml b/roles/common/tasks/firewall.yml index fd1ad92..30f4fa9 100644 --- a/roles/common/tasks/firewall.yml +++ b/roles/common/tasks/firewall.yml @@ -18,7 +18,7 @@ register: rv # A non-zero return value will make ansible stop and show stderr. This # is what we want. - changed_when: rv.rc + changed_when: rv.rc != 0 - name: Enable nftables.service service: name=nftables enabled=yes -- cgit v1.2.3