From cf22af1a4f415fba62979a567d6aaa39fb903290 Mon Sep 17 00:00:00 2001 From: abrown38 Date: Mon, 14 Apr 2025 09:29:17 +0100 Subject: [PATCH] swap to rescue --- ansible/roles/win_dfs/tasks/configure.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ansible/roles/win_dfs/tasks/configure.yml b/ansible/roles/win_dfs/tasks/configure.yml index 61bca92..845ac88 100644 --- a/ansible/roles/win_dfs/tasks/configure.yml +++ b/ansible/roles/win_dfs/tasks/configure.yml @@ -60,6 +60,6 @@ DomainName: "{{ win_project }}.loc" PsDscRunAsCredential_username: Administrator PsDscRunAsCredential_password: "{{ ansible_password }}" - when: | # maybe change second condition or use resuce - inventory_hostname in groups['meta-name_fs01'] and - feature_status.reboot_required == true + rescue: [] + when: | + inventory_hostname in groups['meta-name_fs01']