From 870dbac530ca14d74887973d3cd6c4cfcaa109e0 Mon Sep 17 00:00:00 2001 From: Alexander Gorelyshev Date: Mon, 8 Jun 2026 20:10:35 +0400 Subject: [PATCH] Fix an incorrect variable name --- roles/fail2ban_rhel/molecule/default/verify.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/fail2ban_rhel/molecule/default/verify.yml b/roles/fail2ban_rhel/molecule/default/verify.yml index b211c11..05ea64b 100644 --- a/roles/fail2ban_rhel/molecule/default/verify.yml +++ b/roles/fail2ban_rhel/molecule/default/verify.yml @@ -6,12 +6,12 @@ tasks: - name: "Check that the fail2ban service is active" - register: sshd_rhel_fail2ban_service + register: fail2ban_rhel_fail2ban_service ansible.builtin.systemd: name: fail2ban - name: "Assert fail2ban is running" ansible.builtin.assert: - that: sshd_rhel_fail2ban_service.status.ActiveState == "active" + that: fail2ban_rhel_fail2ban_service.status.ActiveState == "active" success_msg: "fail2ban service is running" fail_msg: "fail2ban service is not active"