-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestfile1
35 lines (30 loc) · 906 Bytes
/
testfile1
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
31
32
33
34
35
- block:
- name: ENSURE OS IS CORRECT
nxos_install_os:
system_image_file: "{{ nxos_version }}"
provider: "{{ nxos_provider }}"
rescue:
- name: WAITING FOR DEVICE TO PERFORM ALL UPGRADE CHECKS AND STARTS REBOOT
wait_for:
port: 22
state: stopped
timeout: 300
delay: 60
host: "{{ inventory_hostname }}"
- name: REBOOT IN PROGRESS - WAITING FOR DEVICE TO COME BACK ONLINE
wait_for:
port: 22
state: started
timeout: 300
delay: 60
host: "{{ inventory_hostname }}"
always:
- name: GATHER FACTS TO RECORD CURRENT VERSION OF NX-OS
nxos_facts:
provider: "{{ nxos_provider }}"
- name: CURRENT OS VERSION
debug: var=os
- name: VERIFY CURRENT VERSION IS EXPECTED VERSION
assert:
that:
- "'{{ os }}' == '{{ nxos_version_str }}'"