From 4ab7f110b6e02a69b737707e6087e32af0511282 Mon Sep 17 00:00:00 2001 From: abrown38 Date: Thu, 9 Jan 2025 15:59:29 +0000 Subject: [PATCH] allow role to be rerun --- ansible/roles/win_dfs/tasks/configure.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ansible/roles/win_dfs/tasks/configure.yml b/ansible/roles/win_dfs/tasks/configure.yml index f71b919..61bca92 100644 --- a/ansible/roles/win_dfs/tasks/configure.yml +++ b/ansible/roles/win_dfs/tasks/configure.yml @@ -60,4 +60,6 @@ DomainName: "{{ win_project }}.loc" PsDscRunAsCredential_username: Administrator PsDscRunAsCredential_password: "{{ ansible_password }}" - when: inventory_hostname in groups['meta-name_fs01'] + when: | # maybe change second condition or use resuce + inventory_hostname in groups['meta-name_fs01'] and + feature_status.reboot_required == true