This commit is contained in:
2024-04-01 10:40:20 +02:00
parent 5152f44924
commit 8a7c4f3724
154 changed files with 100 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
---
- name: Installation mises a jours Windows
hosts: windows
gather_facts: no
become: false
tasks:
- name: "Installation mises a jours Windows"
win_updates:
category_names:
- Application
- Connectors
- CriticalUpdates
- DefinitionUpdates
- SecurityUpdates
- Tools
- UpdateRollups
- Updates
state: "installed"
log_path: "C:\Ansible_WU.txt"
- name: Ensure WinRM starts when the system has settled and is ready to work reliably
win_service:
name: WinRM
start_mode: delayed
# Optionally, you can increase the reboot_timeout to survive long updates during reboot
- name: Ensure we wait long enough for the updates to be applied during reboot
win_updates:
reboot: no
reboot_timeout: 3600
...