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