mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 15:39:58 +00:00
Strengthen Windows 11 widget disable policy
This commit is contained in:
@@ -65,6 +65,18 @@
|
|||||||
- windows_hide_taskbar_widgets | default(false)
|
- windows_hide_taskbar_widgets | default(false)
|
||||||
- windows_host_version_state.result.is_windows_11 | default(false)
|
- windows_host_version_state.result.is_windows_11 | default(false)
|
||||||
|
|
||||||
|
- name: Disable Windows 11 widgets via policy
|
||||||
|
tags: [packages]
|
||||||
|
ansible.windows.win_regedit:
|
||||||
|
path: HKLM:\SOFTWARE\Policies\Microsoft\Dsh
|
||||||
|
name: AllowNewsAndInterests
|
||||||
|
data: 0
|
||||||
|
type: dword
|
||||||
|
register: windows_11_widgets_policy_state
|
||||||
|
when:
|
||||||
|
- windows_hide_taskbar_widgets | default(false)
|
||||||
|
- windows_host_version_state.result.is_windows_11 | default(false)
|
||||||
|
|
||||||
- name: Hide Windows 10 news and interests taskbar widget
|
- name: Hide Windows 10 news and interests taskbar widget
|
||||||
tags: [packages]
|
tags: [packages]
|
||||||
ansible.windows.win_regedit:
|
ansible.windows.win_regedit:
|
||||||
@@ -82,13 +94,15 @@
|
|||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
msg: >-
|
msg: >-
|
||||||
Windows shell appearance settings changed. Sign out and back in, or restart explorer.exe,
|
Windows shell appearance settings changed. Sign out and back in, or restart explorer.exe,
|
||||||
if taskbar or theme updates do not appear immediately.
|
if taskbar or theme updates do not appear immediately. Windows 11 widget policy changes can require
|
||||||
|
signing out before the widget button disappears from the taskbar.
|
||||||
changed_when: false
|
changed_when: false
|
||||||
when: >-
|
when: >-
|
||||||
(windows_apps_dark_mode_state is changed)
|
(windows_apps_dark_mode_state is changed)
|
||||||
or (windows_system_dark_mode_state is changed)
|
or (windows_system_dark_mode_state is changed)
|
||||||
or (windows_taskbar_search_state is changed)
|
or (windows_taskbar_search_state is changed)
|
||||||
or (windows_11_widgets_state is changed)
|
or (windows_11_widgets_state is changed)
|
||||||
|
or (windows_11_widgets_policy_state is changed)
|
||||||
or (windows_10_widgets_state is changed)
|
or (windows_10_widgets_state is changed)
|
||||||
|
|
||||||
- name: Ensure winget is available on Windows host
|
- name: Ensure winget is available on Windows host
|
||||||
|
|||||||
Reference in New Issue
Block a user