-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtapaws1.yml
More file actions
30 lines (25 loc) · 770 Bytes
/
tapaws1.yml
File metadata and controls
30 lines (25 loc) · 770 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
---
- name: PATCH AZURE VM
hosts: all
gather_facts: yes
tasks:
- name: Update
win_updates:
category_names: SecurityUpdates
state: searched
# state: installed
register: update_count
when: inventory_hostname == 'winabc'
- name: DISPLAY MISSING UPDATE RESULTS
debug:
msg: "{{ update_count }}"
# - name: OBTAIN WINDOW SERVER IP ADDRESS
# azure_rm_publicipaddress_facts:
# subscription_id: "{{ my_subscription_id }}"
# client_id: "{{ my_client_id }}"
# secret: "{{ my_secret }}"
# tenant: "{{ my_tenant }}"
# register: output_ip_address
# - name: DISPLAY WINDOWS SERVER IP ADDRESS
# debug:
# msg: "{{ output_ip_address.ansible_facts.azure_publicipaddresses[0].properties.ipAddress }}"