Skip to content

Commit

Permalink
enable update service if not already active
Browse files Browse the repository at this point in the history
  • Loading branch information
Mayfly277 committed Mar 28, 2024
1 parent e3ecace commit 8106116
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ansible/roles/settings/updates/tasks/default.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
- name: Enable update service
ansible.windows.win_service:
name: Windows Update
state: started
start_mode: auto

- name: Install all updates and reboot as many times as needed
ansible.windows.win_updates:
category_names: '*'
Expand Down

0 comments on commit 8106116

Please sign in to comment.