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']