From 1b290bf8c3bedb2bf1cb2cb8cbcccf7d03db1d96 Mon Sep 17 00:00:00 2001 From: rpwolff Date: Fri, 16 Jun 2023 16:31:25 +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 | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/windowssample.yml b/windowssample.yml index 3e23fa9..010a479 100644 --- a/windowssample.yml +++ b/windowssample.yml @@ -1,5 +1,11 @@ --- - hosts: windows + tasks: + - name: Install all updates and reboot as many times as needed + ansible.windows.win_updates: + category_names: '*' + reboot: true + # vars: # remote_user: Administrator # tasks: @@ -12,11 +18,11 @@ #--- # hosts: all - tasks: - - name: Install all updates and reboot as many times as needed - ansible.windows.win_updates: - category_names: '*' - reboot: true +# 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: