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: win_file:
path: "{{ wsus_content_directory }}" path: "{{ wsus_content_directory }}"
state: directory state: directory
#- name: Ensure WSUS server is deployed (UpdateServicesDSC) - Errors here :(
# tags: testing - name: Set WSUS Content Directory
# win_dsc: tags: set_wsus_content_dir
# resource_name: UpdateServicesServer win_shell: |
# Ensure: Present CD "C:\Program Files\Update Services\Tools"
# ContentDir: '{{ wsus_content_directory }}' .\wsusutil.exe postinstall CONTENT_DIR=W:\WSUS
# Languages: en
# #Products: "{{ wsus_products }}" #- name: Ensure WSUS server is deployed (UpdateServicesDSC) - Errors here :(
# Products: "Windows Admin Center" # tags: testing
# PsDscRunAsCredential_username: Administrator # win_dsc:
# PsDscRunAsCredential_password: "{{ ansible_password }}" # resource_name: UpdateServicesServer
# #ErrorRecord: test # Ensure: Present
# Classifications: # ContentDir: '{{ wsus_content_directory }}'
# - "{{ CriticalUpdates }}" # Languages: en
# #- "{{ DefinitionUpdates }}" # #Products: "{{ wsus_products }}"
# #- "{{ SecurityUpdates }}" # Products: "Windows Admin Center"
# #- "{{ ServicePacks }}" # PsDscRunAsCredential_username: Administrator
# #- "{{ UpdateRollups }}" # PsDscRunAsCredential_password: "{{ ansible_password }}"
# #- "{{ Updates }}" # #ErrorRecord: test
# #Synchronize: True # Classifications:
# SynchronizeAutomatically: True # - "{{ CriticalUpdates }}"
# SynchronizeAutomaticallyTimeOfDay: '15:30:00' # #- "{{ DefinitionUpdates }}"
# ClientTargetingMode: "{{ wsus_client_targeting_mode }}" # #- "{{ SecurityUpdates }}"
# #- "{{ ServicePacks }}"
# #- "{{ UpdateRollups }}"
# #- "{{ Updates }}"
# #Synchronize: True
# SynchronizeAutomatically: True
# SynchronizeAutomaticallyTimeOfDay: '15:30:00'
# ClientTargetingMode: "{{ wsus_client_targeting_mode }}"