mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-11-02 13:50:15 +00:00
win_wsus role
This commit is contained in:
1 parent
dde38e64c1
commit
0d3884c84d
5 files changed
+67
No files matched your search
@@ -0,0 +1,33 @@
|
||||
---
|
||||
- name: WSUS Features
|
||||
tags: wsus_features
|
||||
block:
|
||||
- name: Install WSUS features
|
||||
win_feature:
|
||||
name:
|
||||
- UpdateServices-WidDB
|
||||
- UpdateServices-Services
|
||||
- UpdateServices-API
|
||||
- UpdateServices-UI
|
||||
state: present
|
||||
inlcude_management_tools: True
|
||||
register: feature_status
|
||||
|
||||
- name: Rebooting Servers post feature installation
|
||||
win_reboot:
|
||||
reboot_timeout_sec: 1200
|
||||
when: feature_status.reboot_required == true
|
||||
|
||||
- name: WSUS Powershell
|
||||
tags: wsus_powershell
|
||||
block:
|
||||
- name: Install NuGet packageprovider (requirement for xDFS DSC module installation)
|
||||
ansible.windows.win_powershell:
|
||||
script: |
|
||||
Find-PackageProvider -Name Nuget -ForceBootstrap -IncludeDependencies -Force
|
||||
|
||||
- name: Install UpdateServices DSC module
|
||||
win_psmodule:
|
||||
name: UpdateServicesDsc
|
||||
state: Present
|
||||
accept_license: true
|
||||
Reference in new issue
Block a user