set wsus content dir

This commit is contained in:
abrown38 committed 2024-09-27 17:37:58 +01:00
1 parent 13f5bdd45d
commit 844d5f011a
1 file changed
+30 -23
+30 -23
View File
@@ -6,29 +6,36 @@
win_file:
path: "{{ wsus_content_directory }}"
state: directory
#- name: Ensure WSUS server is deployed (UpdateServicesDSC) - Errors here :(
# tags: testing
# win_dsc:
# resource_name: UpdateServicesServer
# Ensure: Present
# ContentDir: '{{ wsus_content_directory }}'
# Languages: en
# #Products: "{{ wsus_products }}"
# Products: "Windows Admin Center"
# PsDscRunAsCredential_username: Administrator
# PsDscRunAsCredential_password: "{{ ansible_password }}"
# #ErrorRecord: test
# Classifications:
# - "{{ CriticalUpdates }}"
# #- "{{ DefinitionUpdates }}"
# #- "{{ SecurityUpdates }}"
# #- "{{ ServicePacks }}"
# #- "{{ UpdateRollups }}"
# #- "{{ Updates }}"
# #Synchronize: True
# SynchronizeAutomatically: True
# SynchronizeAutomaticallyTimeOfDay: '15:30:00'
# ClientTargetingMode: "{{ wsus_client_targeting_mode }}"
- name: Set WSUS Content Directory
tags: set_wsus_content_dir
win_shell: |
CD "C:\Program Files\Update Services\Tools"
.\wsusutil.exe postinstall CONTENT_DIR=W:\WSUS
#- name: Ensure WSUS server is deployed (UpdateServicesDSC) - Errors here :(
# tags: testing
# win_dsc:
# resource_name: UpdateServicesServer
# Ensure: Present
# ContentDir: '{{ wsus_content_directory }}'
# Languages: en
# #Products: "{{ wsus_products }}"
# Products: "Windows Admin Center"
# PsDscRunAsCredential_username: Administrator
# PsDscRunAsCredential_password: "{{ ansible_password }}"
# #ErrorRecord: test
# Classifications:
# - "{{ CriticalUpdates }}"
# #- "{{ DefinitionUpdates }}"
# #- "{{ SecurityUpdates }}"
# #- "{{ ServicePacks }}"
# #- "{{ UpdateRollups }}"
# #- "{{ Updates }}"
# #Synchronize: True
# SynchronizeAutomatically: True
# SynchronizeAutomaticallyTimeOfDay: '15:30:00'
# ClientTargetingMode: "{{ wsus_client_targeting_mode }}"