| 1 | --- |
| 2 | - name: Dell OpenManage Ansible identity pool operations. |
| 3 | hosts: ome |
| 4 | gather_facts: false |
| 5 | |
| 6 | tasks: |
| 7 | - name: Create an identity pool using ethernet, FCoE, iSCSI and FC settings |
| 8 | dellemc.openmanage.ome_identity_pool: |
| 9 | hostname: "{{ hostname }}" |
| 10 | username: "{{ username }}" |
| 11 | password: "{{ password }}" |
| 12 | ca_path: "/path/to/ca_cert.pem" |
| 13 | state: present |
| 14 | pool_name: "pool1" |
| 15 | pool_description: "Identity pool with Ethernet, |
| 16 | FCoE, ISCSI and FC settings" |
| 17 | ethernet_settings: |
| 18 | starting_mac_address: "50:50:50:50:50:00" |
| 19 | identity_count: 60 |
| 20 | fcoe_settings: |
| 21 | starting_mac_address: "aabb.ccdd.7070" |
| 22 | identity_count: 75 |
| 23 | iscsi_settings: |
| 24 | starting_mac_address: "60:60:60:60:60:00" |
| 25 | identity_count: 30 |
| 26 | initiator_config: |
| 27 | iqn_prefix: "iqn.2025-07.com.example:storage-system" |
| 28 | initiator_ip_pool_settings: |
| 29 | ip_range: "10.33.0.1-10.33.0.255" |
| 30 | subnet_mask: "255.255.255.0" |
| 31 | gateway: "192.168.4.1" |
| 32 | primary_dns_server: "10.8.8.8" |
| 33 | secondary_dns_server: "8.8.8.8" |
| 34 | fc_settings: |
| 35 | starting_address: "10-10-10-10-10-10" |
| 36 | identity_count: 45 |
| 37 | tags: create1 |
| 38 | delegate_to: localhost |
| 39 | |
| 40 | - name: Create an identity pool using only ethernet settings. |
| 41 | dellemc.openmanage.ome_identity_pool: |
| 42 | hostname: "{{ hostname }}" |
| 43 | username: "{{ username }}" |
| 44 | password: "{{ password }}" |
| 45 | ca_path: "/path/to/ca_cert.pem" |
| 46 | pool_name: "pool2" |
| 47 | pool_description: "Identity pool with ethernet" |
| 48 | ethernet_settings: |
| 49 | starting_mac_address: "aa-bb-cc-dd-ee-aa" |
| 50 | identity_count: 80 |
| 51 | tags: create2 |
| 52 | delegate_to: localhost |
| 53 | |
| 54 | - name: Create an identity pool using only iSCSI settings |
| 55 | dellemc.openmanage.ome_identity_pool: |
| 56 | hostname: "{{ hostname }}" |
| 57 | username: "{{ username }}" |
| 58 | password: "{{ password }}" |
| 59 | ca_path: "/path/to/ca_cert.pem" |
| 60 | pool_name: "pool3" |
| 61 | pool_description: "Identity pool with iscsi" |
| 62 | iscsi_settings: |
| 63 | starting_mac_address: "10:10:10:10:10:00" |
| 64 | identity_count: 30 |
| 65 | initiator_config: |
| 66 | iqn_prefix: "iqn.2025-07.com.example:storage-system" |
| 67 | initiator_ip_pool_settings: |
| 68 | ip_range: "20.33.0.1-20.33.0.255" |
| 69 | subnet_mask: "255.255.255.0" |
| 70 | gateway: "192.168.4.1" |
| 71 | primary_dns_server: "10.8.8.8" |
| 72 | secondary_dns_server: "8.8.8.8" |
| 73 | tags: create3 |
| 74 | delegate_to: localhost |
| 75 | |
| 76 | - name: Modify an identity pool using FC settings. |
| 77 | dellemc.openmanage.ome_identity_pool: |
| 78 | hostname: "{{ hostname }}" |
| 79 | username: "{{ username }}" |
| 80 | password: "{{ password }}" |
| 81 | ca_path: "/path/to/ca_cert.pem" |
| 82 | pool_name: "pool2" |
| 83 | pool_description: "Identity pool with fc_settings" |
| 84 | fc_settings: |
| 85 | starting_address: "40:40:40:40:40:22" |
| 86 | identity_count: 48 |
| 87 | tags: modify1 |
| 88 | delegate_to: localhost |
| 89 | |
| 90 | - name: Modify an identity pool. |
| 91 | dellemc.openmanage.ome_identity_pool: |
| 92 | hostname: "{{ hostname }}" |
| 93 | username: "{{ username }}" |
| 94 | password: "{{ password }}" |
| 95 | ca_path: "/path/to/ca_cert.pem" |
| 96 | pool_name: "pool1" |
| 97 | new_pool_name: "pool_new" |
| 98 | pool_description: "modifying identity pool with ethernet and fcoe |
| 99 | settings" |
| 100 | ethernet_settings: |
| 101 | starting_mac_address: "90-90-90-90-90-90" |
| 102 | identity_count: 61 |
| 103 | fcoe_settings: |
| 104 | starting_mac_address: "aabb.ccdd.5050" |
| 105 | identity_count: 77 |
| 106 | tags: modify2 |
| 107 | delegate_to: localhost |
| 108 | |
| 109 | - name: Modify an identity pool using iSCSI and FC settings. |
| 110 | dellemc.openmanage.ome_identity_pool: |
| 111 | hostname: "{{ hostname }}" |
| 112 | username: "{{ username }}" |
| 113 | password: "{{ password }}" |
| 114 | ca_path: "/path/to/ca_cert.pem" |
| 115 | pool_name: "pool_new" |
| 116 | new_pool_name: "pool_new2" |
| 117 | pool_description: "modifying identity pool with iscsi and fc settings" |
| 118 | iscsi_settings: |
| 119 | identity_count: 99 |
| 120 | initiator_config: |
| 121 | iqn_prefix: "iqn.2025-27.com.example:storage-system" |
| 122 | initiator_ip_pool_settings: |
| 123 | gateway: "192.168.4.5" |
| 124 | fc_settings: |
| 125 | starting_address: "10:10:10:10:10:10" |
| 126 | identity_count: 98 |
| 127 | tags: modify3 |
| 128 | delegate_to: localhost |
| 129 | |
| 130 | - name: Delete an identity pool |
| 131 | dellemc.openmanage.ome_identity_pool: |
| 132 | hostname: "{{ hostname }}" |
| 133 | username: "{{ username }}" |
| 134 | password: "{{ password }}" |
| 135 | ca_path: "/path/to/ca_cert.pem" |
| 136 | state: "absent" |
| 137 | pool_name: "pool1" |
| 138 | tags: delete |
| 139 | delegate_to: localhost |