From 744f42e274cb63fe9ea3405599bbe371b3898c98 Mon Sep 17 00:00:00 2001 From: Mark Bolwell Date: Fri, 1 Nov 2024 10:58:19 +0000 Subject: [PATCH] moved check_mode Signed-off-by: Mark Bolwell --- tasks/fix-cat2.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/fix-cat2.yml b/tasks/fix-cat2.yml index c341d7d9..0744996b 100644 --- a/tasks/fix-cat2.yml +++ b/tasks/fix-cat2.yml @@ -4427,9 +4427,9 @@ - name: "MEDIUM | RHEL-07-041010 | AUDIT | check if wifi is enabled" ansible.builtin.shell: nmcli radio wifi - check_mode: false changed_when: false failed_when: rhel_07_wifi_enabled.rc not in [ 0, 1 ] + check_mode: false register: rhel_07_wifi_enabled when: - discovered_wireless_adapters.rc == 0