From f6a6ee27e1b7b34ff6997a08688f941f66078567 Mon Sep 17 00:00:00 2001 From: rpwolff Date: Wed, 14 Jun 2023 14:01:46 +0200 Subject: [PATCH] =?UTF-8?q?=E2=80=9Ewindowssample.yml=E2=80=9C=20=C3=A4nde?= =?UTF-8?q?rn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- windowssample.yml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/windowssample.yml b/windowssample.yml index 227ea9d..a23cfee 100644 --- a/windowssample.yml +++ b/windowssample.yml @@ -1,14 +1,17 @@ -- name: Install all updates and reboot as many times as needed - ansible.windows.win_updates: - category_names: '*' - reboot: true +- name: file module demo + hosts: all + tasks: + - name: Install all updates and reboot as many times as needed + ansible.windows.win_updates: + category_names: '*' + reboot: true -- name: Install all security, critical, and rollup updates without a scheduled task - ansible.windows.win_updates: - category_names: - - SecurityUpdates - - CriticalUpdates - - UpdateRollups +#- name: Install all security, critical, and rollup updates without a scheduled task +# ansible.windows.win_updates: +# category_names: +# - SecurityUpdates +# - CriticalUpdates +# - UpdateRollups #- name: Search-only, return list of found updates (if any), log to C:\ansible_wu.txt # ansible.windows.win_updates: