Win patch (#11)

Add patching report for windows, cloud destroy VM, and Windows Full blueprint
This commit is contained in:
willtome
2022-03-30 11:03:08 -05:00
committed by GitHub
parent 8e56c5bbf6
commit 0ed4737985
48 changed files with 182 additions and 377 deletions

22
windows/patching.yml Normal file
View File

@@ -0,0 +1,22 @@
---
- name: Windows updates
hosts: "{{ HOSTS | default('os_windows') }}"
vars:
report_server: win1
tasks:
- include_role:
name: demo.patching.patch_windows
- block:
- include_role:
name: demo.patching.report_server
tasks_from: iis
- include_role:
name: demo.patching.report_windows
- include_role:
name: demo.patching.report_windows_patching
delegate_to: "{{ report_server }}"
run_once: yes

View File

@@ -74,11 +74,13 @@ controller_templates:
variable: iis_message
required: true
- name: "WINDOWS / Windows updates"
job_type: run
- name: "WINDOWS / Patching"
use_fact_cache: true
job_type: check
ask_job_type_on_launch: yes
inventory: "Workshop Inventory"
project: "Ansible official demo project"
playbook: "windows/windows_updates.yml"
playbook: "windows/patching.yml"
execution_environment: Default execution environment
credentials:
- "Workshop Credential"
@@ -92,8 +94,8 @@ controller_templates:
variable: HOSTS
required: false
- question_name: Update categories
type: multiplechoice
variable: categories
type: multiselect
variable: win_update_categories
required: false
default: SecurityUpdates
choices:
@@ -110,7 +112,7 @@ controller_templates:
- Updates
- question_name: Reboot after install?
type: multiplechoice
variable: reboot_server
variable: allow_reboot
required: false
default: 'Yes'
choices:

View File

@@ -1,9 +0,0 @@
---
- name: Windows updates
hosts: "{{ HOSTS | default('windows') }}"
tasks:
- name: Install Windows Updates
win_updates:
category_names: "{{ categories | default(omit) }}"
reboot: '{{ reboot_server | default(yes) }}'