mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-26 12:47:21 +00:00
set wsus content dir
This commit is contained in:
1 parent
13f5bdd45d
commit
844d5f011a
1 file changed
+30
-23
@@ -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 }}"
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user