September 2018
Beginner to intermediate
214 pages
5h 53m
English
This use case tackles the automation of Windows host systems and some application updates. We are going to make updates restricted to what the playbook asks the hosts to do by disabling auto update and only updating the permitted categories:
---- name: Windows updates management hosts: windows gather_facts: yes tasks: - name: Create the registry path for Windows Updates win_regedit: path: HKLM:\SOFTWARE\Policies\Microsoft\Windows \WindowsUpdate\AU state: present ignore_errors: yes - name: Add register key to disable Windows AutoUpdate win_regedit: path: HKLM:\SOFTWARE\Policies\Microsoft\Windows \WindowsUpdate\AU name: NoAutoUpdate data: 1 type: dword ignore_errors: yes - name: Make sure that the Windows ...
Read now
Unlock full access