| 1 |
--- |
| 2 |
- name: Dell OpenManage Ansible OME firmware baseline operations. |
| 3 |
hosts: ome |
| 4 |
gather_facts: false |
| 5 |
|
| 6 |
tasks: |
| 7 |
- name: Create baseline for device IDs |
| 8 |
dellemc.openmanage.ome_firmware_baseline: |
| 9 |
hostname: "{{ hostname }}" |
| 10 |
username: "{{ username }}" |
| 11 |
password: "{{ password }}" |
| 12 |
ca_path: "/path/to/ca_cert.pem" |
| 13 |
baseline_name: "baseline_name" |
| 14 |
baseline_description: "baseline_description" |
| 15 |
catalog_name: "catalog_name" |
| 16 |
device_ids: |
| 17 |
- 1010 |
| 18 |
- 2020 |
| 19 |
delegate_to: localhost |
| 20 |
|
| 21 |
- name: Create baseline for device IDs with no reboot required |
| 22 |
dellemc.openmanage.ome_firmware_baseline: |
| 23 |
hostname: "192.168.0.1" |
| 24 |
username: "username" |
| 25 |
password: "password" |
| 26 |
ca_path: "/path/to/ca_cert.pem" |
| 27 |
baseline_name: "baseline_name" |
| 28 |
baseline_description: "baseline_description" |
| 29 |
catalog_name: "catalog_name" |
| 30 |
filter_no_reboot_required: true |
| 31 |
device_ids: |
| 32 |
- 1010 |
| 33 |
- 2020 |
| 34 |
delegate_to: localhost |
| 35 |
|
| 36 |
- name: Create baseline for servicetags |
| 37 |
dellemc.openmanage.ome_firmware_baseline: |
| 38 |
hostname: "{{ hostname }}" |
| 39 |
username: "{{ username }}" |
| 40 |
password: "{{ password }}" |
| 41 |
ca_path: "/path/to/ca_cert.pem" |
| 42 |
baseline_name: "baseline_name" |
| 43 |
baseline_description: "baseline_description" |
| 44 |
catalog_name: "catalog_name" |
| 45 |
device_service_tags: |
| 46 |
- "SVCTAG1" |
| 47 |
- "SVCTAG2" |
| 48 |
delegate_to: localhost |
| 49 |
|
| 50 |
- name: Create baseline for servicetags with no reboot required |
| 51 |
dellemc.openmanage.ome_firmware_baseline: |
| 52 |
hostname: "{{ hostname }}" |
| 53 |
username: "{{ username }}" |
| 54 |
password: "{{ password }}" |
| 55 |
ca_path: "/path/to/ca_cert.pem" |
| 56 |
baseline_name: "baseline_name" |
| 57 |
baseline_description: "baseline_description" |
| 58 |
catalog_name: "catalog_name" |
| 59 |
filter_no_reboot_required: true |
| 60 |
device_service_tags: |
| 61 |
- "SVCTAG1" |
| 62 |
- "SVCTAG2" |
| 63 |
delegate_to: localhost |
| 64 |
|
| 65 |
- name: Create baseline for device groups without job_tracking |
| 66 |
dellemc.openmanage.ome_firmware_baseline: |
| 67 |
hostname: "{{ hostname }}" |
| 68 |
username: "{{ username }}" |
| 69 |
password: "{{ password }}" |
| 70 |
ca_path: "/path/to/ca_cert.pem" |
| 71 |
baseline_name: "baseline_name" |
| 72 |
baseline_description: "baseline_description" |
| 73 |
catalog_name: "catalog_name" |
| 74 |
device_group_names: |
| 75 |
- "Group1" |
| 76 |
- "Group2" |
| 77 |
job_wait: false |
| 78 |
delegate_to: localhost |
| 79 |
|
| 80 |
- name: Modify an existing baseline |
| 81 |
dellemc.openmanage.ome_firmware_baseline: |
| 82 |
hostname: "{{ hostname }}" |
| 83 |
username: "{{ username }}" |
| 84 |
password: "{{ password }}" |
| 85 |
ca_path: "/path/to/ca_cert.pem" |
| 86 |
baseline_name: "existing_baseline_name" |
| 87 |
new_baseline_name: "new_baseline_name" |
| 88 |
baseline_description: "new baseline_description" |
| 89 |
catalog_name: "catalog_other" |
| 90 |
device_group_names: |
| 91 |
- "Group3" |
| 92 |
- "Group4" |
| 93 |
- "Group5" |
| 94 |
downgrade_enabled: false |
| 95 |
is_64_bit: true |
| 96 |
filter_no_reboot_required: true |
| 97 |
delegate_to: localhost |
| 98 |
|
| 99 |
- name: Modify no reboot filter in existing baseline |
| 100 |
dellemc.openmanage.ome_firmware_baseline: |
| 101 |
hostname: "{{ hostname }}" |
| 102 |
username: "{{ username }}" |
| 103 |
password: "{{ password }}" |
| 104 |
ca_path: "/path/to/ca_cert.pem" |
| 105 |
baseline_name: "existing_baseline_name" |
| 106 |
new_baseline_name: "new_baseline_name" |
| 107 |
filter_no_reboot_required: true |
| 108 |
delegate_to: localhost |
| 109 |
|
| 110 |
- name: Delete a baseline |
| 111 |
dellemc.openmanage.ome_firmware_baseline: |
| 112 |
hostname: "{{ hostname }}" |
| 113 |
username: "{{ username }}" |
| 114 |
password: "{{ password }}" |
| 115 |
ca_path: "/path/to/ca_cert.pem" |
| 116 |
state: absent |
| 117 |
baseline_name: "baseline_name" |
| 118 |
delegate_to: localhost |