Add windows updates playbook

This commit is contained in:
Domenik Bildhauer
2024-12-31 18:27:38 +01:00
parent b0b609de46
commit f31c1efd16

View File

@@ -0,0 +1,15 @@
---
- name: Windows Updates
hosts: windows
tasks:
- name: Check for available updates
win_updates:
state: searched
- name: Download updates
win_updates:
state: installed
- name: Reboot if required
win_reboot:
when: ansible_reboot_pending | bool