mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-26 17:07:21 +00:00
Copy and run script for WSUS
This commit is contained in:
1 parent
1b11f707c7
commit
ae47d176c0
4 files changed
+27
-6
No files matched your search
@@ -0,0 +1 @@
|
||||
setup_wsus_v1.0.ps1
|
||||
Whitespace-only changes.
@@ -7,11 +7,27 @@
|
||||
path: "{{ wsus_content_directory }}"
|
||||
state: directory
|
||||
|
||||
- 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: 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: WSUS Script
|
||||
tags: wsus_script
|
||||
block:
|
||||
- name: Copy WSUS script
|
||||
win_copy:
|
||||
src: "{{ wsus_script }}"
|
||||
dest: "powershell {{ script_dir }}\\{{ wsus_script }}"
|
||||
force: true
|
||||
tags: copy_wsus_script
|
||||
|
||||
- name: Apply WSUS script
|
||||
win_shell: "powershell {{ script_dir }}\\{{ wsus_script }}"
|
||||
tags: apply_wsus_script
|
||||
|
||||
|
||||
|
||||
#- name: Ensure WSUS server is deployed (UpdateServicesDSC) - Errors here :(
|
||||
# tags: testing
|
||||
@@ -100,4 +116,4 @@
|
||||
## path: HKLM:\SOFTWARE\Microsoft\Update Services\Server\Setup
|
||||
## name: SqlDatabaseName
|
||||
## register: wsus_db_name
|
||||
## when: inventory_hostname in groups['meta-Tags_wsus']
|
||||
## when: inventory_hostname in groups['meta-Tags_wsus']
|
||||
@@ -1,6 +1,10 @@
|
||||
wsus_drive_letter: W
|
||||
wsus_volume_label: WSUS
|
||||
wsus_content_directory: "{{ wsus_drive_letter }}:\\WSUS"
|
||||
|
||||
script_dir: C:\eidf
|
||||
wsus_script: wsus_setup.ps1
|
||||
|
||||
#
|
||||
#CriticalUpdates: 'E6CF1350-C01B-414D-A61F-263D14D133B4'
|
||||
#DefinitionUpdates: 'E0789628-CE08-4437-BE74-2495B842F43B'
|
||||
|
||||
Reference in new issue
Block a user