diff --git a/roles/ad_joined/tasks/main_win.yml b/roles/ad_joined/tasks/main_win.yml index f2de3a9..748036b 100644 --- a/roles/ad_joined/tasks/main_win.yml +++ b/roles/ad_joined/tasks/main_win.yml @@ -52,6 +52,16 @@ win_command: wuauclt.exe /updatenow ignore_errors: yes +- name: Fix broken display settings - start CDPSvc + win_regedit: + path: "{{item}}" + name: "Start" + type: dword + data: 0x00000002 + with_items: + - HKLM\SYSTEM\CurrentControlSet\Services\CDPSvc + - HKLM\SYSTEM\CurrentControlSet\Services\CDPUserSvc + - name: Reboot win_command: "shutdown /r" when: domain_state.reboot_required