-
Notifications
You must be signed in to change notification settings - Fork 1
/
ome-firmware.yml
executable file
·65 lines (59 loc) · 2.01 KB
/
ome-firmware.yml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
---
- hosts: mx
connection: local
name: Provision Host
gather_facts: False
vars:
catalog_name: "SledLatest"
baseline_name: "TestSledLatest"
vars_files:
- vault.yml
tasks:
- name: Create catalog from NFS network share
dellemc.openmanage.ome_firmware_catalog:
hostname: "{{ vault_ome_host }}"
username: "{{ vault_ome_username }}"
password: "{{ vault_ome_password }}"
catalog_name: "{{ catalog_name }}"
repository_type: "NFS"
source: "192.166.0.2"
source_path: "/nfs/R940"
file_name: "catalog.xml"
- name: Create baseline
dellemc.openmanage.ome_firmware_baseline:
hostname: "{{ vault_ome_host }}"
username: "{{ vault_ome_username }}"
password: "{{ vault_ome_password }}"
baseline_name: "{{ baseline_name }}"
catalog_name: "{{ catalog_name }}"
device_service_tags:
- "SVCTAG1"
- "SVCTAG2"
- name: Retrieves device compliance report
dellemc.openmanage.ome_firmware_baseline_compliance_info:
hostname: "{{ vault_ome_host }}"
username: "{{ vault_ome_username }}"
password: "{{ vault_ome_password }}"
baseline_name: "{{ baseline_name }}"
- name: Update firmware using baseline
dellemc.openmanage.ome_firmware:
hostname: "{{ vault_ome_host }}"
username: "{{ vault_ome_username }}"
password: "{{ vault_ome_password }}"
baseline_name: "{{ baseline_name }}"
register: output
- debug:
var: output
- name: Wait on Deploy to Complete
dellemc.openmanage.ome_job_info:
hostname: "{{ vault_ome_host }}"
username: "{{ vault_ome_username }}"
password: "{{ vault_ome_password }}"
job_id: "{{ output.return_id }}"
#job_id: 59355
register: output_job
until: output_job.job_info.LastRunStatus.Name in ['Completed', 'Failed', 'Warning', 'Aborted', 'Paused', 'Stopped', 'Cancelled']
retries: 90
delay: 10 # 15 Minutes
- debug:
var: output_job