-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.yml
More file actions
30 lines (28 loc) · 671 Bytes
/
main.yml
File metadata and controls
30 lines (28 loc) · 671 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---
# Ansible playbook to run Windows Update and restart, if required
#
# http://docs.ansible.com/ansible/win_updates_module.html
# https://docs.ansible.com/ansible/win_reboot_module.html
- name: Snapshot
hosts: all
gather_facts: false
connection: local
strategy: linear
roles:
- name: Create VMWare Snapshot
role: vmware_snapshot
tag: snapshot
- name: Windows Update
hosts: all
tags: updates
gather_facts: false
roles:
- name: Prehooks
role: prehooks
tag: prehooks
- name: Installing WindowsUpdates
role: windows_updates
tag: windows_updates
- name: Posthooks
role: posthooks
tag: posthooks