| 1 | --- |
| 2 | - name: Dell OpenManage Ansible device inventory details. |
| 3 | hosts: ome |
| 4 | gather_facts: false |
| 5 | |
| 6 | tasks: |
| 7 | - name: Add devices to a static device group by using the group name and device IDs |
| 8 | dellemc.openmanage.ome_device_group: |
| 9 | hostname: "{{ hostname }}" |
| 10 | username: "{{ username }}" |
| 11 | password: "{{ password }}" |
| 12 | ca_path: "/path/to/ca_cert.pem" |
| 13 | name: "Storage Services" |
| 14 | device_ids: |
| 15 | - 11111 |
| 16 | - 11112 |
| 17 | tags: device-id |
| 18 | delegate_to: localhost |
| 19 | |
| 20 | - name: Add devices to a static device group by using the group name and device service tags |
| 21 | dellemc.openmanage.ome_device_group: |
| 22 | hostname: "{{ hostname }}" |
| 23 | username: "{{ username }}" |
| 24 | password: "{{ password }}" |
| 25 | ca_path: "/path/to/ca_cert.pem" |
| 26 | name: "Storage Services" |
| 27 | device_service_tags: |
| 28 | - GHRT2R |
| 29 | - KJHDF3 |
| 30 | tags: device-service-tags |
| 31 | delegate_to: localhost |
| 32 | |
| 33 | - name: Add devices to a static device group by using the group ID and device service tags |
| 34 | dellemc.openmanage.ome_device_group: |
| 35 | hostname: "{{ hostname }}" |
| 36 | username: "{{ username }}" |
| 37 | password: "{{ password }}" |
| 38 | ca_path: "/path/to/ca_cert.pem" |
| 39 | group_id: 12345 |
| 40 | device_service_tags: |
| 41 | - GHRT2R |
| 42 | - KJHDF3 |
| 43 | tags: group_id_device-service-tags |
| 44 | delegate_to: localhost |
| 45 | |
| 46 | - name: Add devices to a static device group by using the group name and IPv4 addresses |
| 47 | dellemc.openmanage.ome_device_group: |
| 48 | hostname: "{{ hostname }}" |
| 49 | username: "{{ username }}" |
| 50 | password: "{{ password }}" |
| 51 | ca_path: "/path/to/ca_cert.pem" |
| 52 | name: "Storage Services" |
| 53 | ip_addresses: |
| 54 | - 192.35.0.1 |
| 55 | - 192.35.0.5 |
| 56 | tags: group_name_ipv4 |
| 57 | delegate_to: localhost |
| 58 | |
| 59 | - name: Add devices to a static device group by using the group ID and IPv6 addresses |
| 60 | dellemc.openmanage.ome_device_group: |
| 61 | hostname: "{{ hostname }}" |
| 62 | username: "{{ username }}" |
| 63 | password: "{{ password }}" |
| 64 | ca_path: "/path/to/ca_cert.pem" |
| 65 | group_id: 12345 |
| 66 | ip_addresses: |
| 67 | - fe80::ffff:ffff:ffff:ffff |
| 68 | - fe80::ffff:ffff:ffff:2222 |
| 69 | tags: group_id_ipv6 |
| 70 | delegate_to: localhost |
| 71 | |
| 72 | - name: Add devices to a static device group by using the group ID and supported IPv4 and IPv6 address formats. |
| 73 | dellemc.openmanage.ome_device_group: |
| 74 | hostname: "{{ hostname }}" |
| 75 | username: "{{ username }}" |
| 76 | password: "{{ password }}" |
| 77 | ca_path: "/path/to/ca_cert.pem" |
| 78 | group_id: 12345 |
| 79 | ip_addresses: |
| 80 | - 192.35.0.1 |
| 81 | - 10.36.0.0-192.36.0.255 |
| 82 | - 192.37.0.0/24 |
| 83 | - fe80::ffff:ffff:ffff:ffff |
| 84 | - ::ffff:192.0.2.0/125 |
| 85 | - fe80::ffff:ffff:ffff:1111-fe80::ffff:ffff:ffff:ffff |
| 86 | tags: group_id_ipv4_ipv6 |
| 87 | delegate_to: localhost |
| 88 | |
| 89 | - name: Remove devices from a static device group by using the group name and device IDs |
| 90 | dellemc.openmanage.ome_device_group: |
| 91 | hostname: "{{ hostname }}" |
| 92 | username: "{{ username }}" |
| 93 | password: "{{ password }}" |
| 94 | ca_path: "/path/to/ca_cert.pem" |
| 95 | state: "absent" |
| 96 | name: "Storage Services" |
| 97 | device_ids: |
| 98 | - 11111 |
| 99 | - 11112 |
| 100 | tags: device-id |
| 101 | delegate_to: localhost |
| 102 | |
| 103 | - name: Remove devices from a static device group by using the group name and device service tags |
| 104 | dellemc.openmanage.ome_device_group: |
| 105 | hostname: "{{ hostname }}" |
| 106 | username: "{{ username }}" |
| 107 | password: "{{ password }}" |
| 108 | ca_path: "/path/to/ca_cert.pem" |
| 109 | state: "absent" |
| 110 | name: "Storage Services" |
| 111 | device_service_tags: |
| 112 | - GHRT2R |
| 113 | - KJHDF3 |
| 114 | tags: device-service-tags |
| 115 | delegate_to: localhost |
| 116 | |
| 117 | - name: Remove devices from a static device group by using the group ID and device service tags |
| 118 | dellemc.openmanage.ome_device_group: |
| 119 | hostname: "{{ hostname }}" |
| 120 | username: "{{ username }}" |
| 121 | password: "{{ password }}" |
| 122 | ca_path: "/path/to/ca_cert.pem" |
| 123 | state: "absent" |
| 124 | group_id: 12345 |
| 125 | device_service_tags: |
| 126 | - GHRT2R |
| 127 | - KJHDF3 |
| 128 | tags: group_id_device-service-tags |
| 129 | delegate_to: localhost |
| 130 | |
| 131 | - name: Remove devices from a static device group by using the group name and IPv4 addresses |
| 132 | dellemc.openmanage.ome_device_group: |
| 133 | hostname: "{{ hostname }}" |
| 134 | username: "{{ username }}" |
| 135 | password: "{{ password }}" |
| 136 | ca_path: "/path/to/ca_cert.pem" |
| 137 | state: "absent" |
| 138 | name: "Storage Services" |
| 139 | ip_addresses: |
| 140 | - 192.35.0.1 |
| 141 | - 192.35.0.5 |
| 142 | tags: group_name_ipv4 |
| 143 | delegate_to: localhost |
| 144 | |
| 145 | - name: Remove devices from a static device group by using the group ID and IPv6 addresses |
| 146 | dellemc.openmanage.ome_device_group: |
| 147 | hostname: "{{ hostname }}" |
| 148 | username: "{{ username }}" |
| 149 | password: "{{ password }}" |
| 150 | ca_path: "/path/to/ca_cert.pem" |
| 151 | state: "absent" |
| 152 | group_id: 12345 |
| 153 | ip_addresses: |
| 154 | - fe80::ffff:ffff:ffff:ffff |
| 155 | - fe80::ffff:ffff:ffff:2222 |
| 156 | tags: group_id_ipv6 |
| 157 | delegate_to: localhost |
| 158 | |
| 159 | - name: Remove devices from a static device group by using the group ID and supported IPv4 and IPv6 address formats. |
| 160 | dellemc.openmanage.ome_device_group: |
| 161 | hostname: "{{ hostname }}" |
| 162 | username: "{{ username }}" |
| 163 | password: "{{ password }}" |
| 164 | ca_path: "/path/to/ca_cert.pem" |
| 165 | state: "absent" |
| 166 | group_id: 12345 |
| 167 | ip_addresses: |
| 168 | - 192.35.0.1 |
| 169 | - 10.36.0.0-192.36.0.255 |
| 170 | - 192.37.0.0/24 |
| 171 | - fe80::ffff:ffff:ffff:ffff |
| 172 | - ::ffff:192.0.2.0/125 |
| 173 | - fe80::ffff:ffff:ffff:1111-fe80::ffff:ffff:ffff:ffff |
| 174 | tags: group_id_ipv4_ipv6 |
| 175 | delegate_to: localhost |