| 1 | --- |
| 2 | - name: Info Module Operations on Unity |
| 3 | hosts: localhost |
| 4 | connection: local |
| 5 | vars: |
| 6 | unispherehost: '10.*.*.*' |
| 7 | validate_certs: false |
| 8 | username: 'user' |
| 9 | password: '**' |
| 10 | |
| 11 | tasks: |
| 12 | - name: Get detailed list of Unity entities. |
| 13 | info: |
| 14 | unispherehost: "{{ unispherehost }}" |
| 15 | username: "{{ username }}" |
| 16 | password: "{{ password }}" |
| 17 | validate_certs: "{{ validate_certs }}" |
| 18 | gather_subset: |
| 19 | - host |
| 20 | - fc_initiator |
| 21 | - iscsi_initiator |
| 22 | - cg |
| 23 | - storage_pool |
| 24 | - vol |
| 25 | - snapshot_schedule |
| 26 | - nas_server |
| 27 | - file_system |
| 28 | - snapshot |
| 29 | - nfs_export |
| 30 | - smb_share |
| 31 | - user_quota |
| 32 | - tree_quota |
| 33 | - disk_group |
| 34 | |
| 35 | - name: Get information of Unity array. |
| 36 | info: |
| 37 | unispherehost: "{{ unispherehost }}" |
| 38 | username: "{{ username }}" |
| 39 | password: "{{ password }}" |
| 40 | validate_certs: "{{ validate_certs }}" |
| 41 | |
| 42 | - name: Get list of Unity hosts. |
| 43 | info: |
| 44 | unispherehost: "{{ unispherehost }}" |
| 45 | username: "{{ username }}" |
| 46 | password: "{{ password }}" |
| 47 | validate_certs: "{{ validate_certs }}" |
| 48 | gather_subset: |
| 49 | - host |
| 50 | |
| 51 | - name: Get list of FC initiators on Unity array. |
| 52 | info: |
| 53 | unispherehost: "{{ unispherehost }}" |
| 54 | username: "{{ username }}" |
| 55 | password: "{{ password }}" |
| 56 | validate_certs: "{{ validate_certs }}" |
| 57 | gather_subset: |
| 58 | - fc_initiator |
| 59 | |
| 60 | - name: Get list of ISCSI initiators on Unity array. |
| 61 | info: |
| 62 | unispherehost: "{{ unispherehost }}" |
| 63 | username: "{{ username }}" |
| 64 | password: "{{ password }}" |
| 65 | validate_certs: "{{ validate_certs }}" |
| 66 | gather_subset: |
| 67 | - iscsi_initiator |
| 68 | |
| 69 | - name: Get list of consistency groups on Unity array. |
| 70 | info: |
| 71 | unispherehost: "{{ unispherehost }}" |
| 72 | username: "{{ username }}" |
| 73 | password: "{{ password }}" |
| 74 | validate_certs: "{{ validate_certs }}" |
| 75 | gather_subset: |
| 76 | - cg |
| 77 | |
| 78 | - name: Get list of storage pools on Unity array. |
| 79 | info: |
| 80 | unispherehost: "{{ unispherehost }}" |
| 81 | username: "{{ username }}" |
| 82 | password: "{{ password }}" |
| 83 | validate_certs: "{{ validate_certs }}" |
| 84 | gather_subset: |
| 85 | - storage_pool |
| 86 | |
| 87 | - name: Get list of volumes on Unity array. |
| 88 | info: |
| 89 | unispherehost: "{{ unispherehost }}" |
| 90 | username: "{{ username }}" |
| 91 | password: "{{ password }}" |
| 92 | validate_certs: "{{ validate_certs }}" |
| 93 | gather_subset: |
| 94 | - vol |
| 95 | |
| 96 | - name: Get list of snapshot schedules on Unity array. |
| 97 | info: |
| 98 | unispherehost: "{{ unispherehost }}" |
| 99 | username: "{{ username }}" |
| 100 | password: "{{ password }}" |
| 101 | validate_certs: "{{ validate_certs }}" |
| 102 | gather_subset: |
| 103 | - snapshot_schedule |
| 104 | |
| 105 | - name: Get list of NAS Servers on Unity array. |
| 106 | info: |
| 107 | unispherehost: "{{ unispherehost }}" |
| 108 | username: "{{ username }}" |
| 109 | password: "{{ password }}" |
| 110 | validate_certs: "{{ validate_certs }}" |
| 111 | gather_subset: |
| 112 | - nas_server |
| 113 | |
| 114 | - name: Get list of File Systems on Unity array. |
| 115 | info: |
| 116 | unispherehost: "{{ unispherehost }}" |
| 117 | username: "{{ username }}" |
| 118 | password: "{{ password }}" |
| 119 | validate_certs: "{{ validate_certs }}" |
| 120 | gather_subset: |
| 121 | - file_system |
| 122 | |
| 123 | - name: Get list of Snapshots on Unity array. |
| 124 | info: |
| 125 | unispherehost: "{{ unispherehost }}" |
| 126 | username: "{{ username }}" |
| 127 | password: "{{ password }}" |
| 128 | validate_certs: "{{ validate_certs }}" |
| 129 | gather_subset: |
| 130 | - snapshot |
| 131 | |
| 132 | - name: Get list of NFS exports on Unity array. |
| 133 | info: |
| 134 | unispherehost: "{{ unispherehost }}" |
| 135 | username: "{{ username }}" |
| 136 | password: "{{ password }}" |
| 137 | validate_certs: "{{ validate_certs }}" |
| 138 | gather_subset: |
| 139 | - nfs_export |
| 140 | |
| 141 | - name: Get list of SMB shares on Unity array. |
| 142 | info: |
| 143 | unispherehost: "{{ unispherehost }}" |
| 144 | username: "{{ username }}" |
| 145 | password: "{{ password }}" |
| 146 | validate_certs: "{{ validate_certs }}" |
| 147 | gather_subset: |
| 148 | - smb_share |
| 149 | |
| 150 | - name: Get list of user quota on Unity array. |
| 151 | info: |
| 152 | unispherehost: "{{ unispherehost }}" |
| 153 | username: "{{ username }}" |
| 154 | password: "{{ password }}" |
| 155 | validate_certs: "{{ validate_certs }}" |
| 156 | gather_subset: |
| 157 | - user_quota |
| 158 | |
| 159 | - name: Get list of quota tree on Unity array. |
| 160 | info: |
| 161 | unispherehost: "{{ unispherehost }}" |
| 162 | username: "{{ username }}" |
| 163 | password: "{{ password }}" |
| 164 | validate_certs: "{{ validate_certs }}" |
| 165 | gather_subset: |
| 166 | - tree_quota |
| 167 | |
| 168 | - name: Get details of Disk Group. |
| 169 | info: |
| 170 | unispherehost: "{{ unispherehost }}" |
| 171 | username: "{{ username }}" |
| 172 | password: "{{ password }}" |
| 173 | validate_certs: "{{ validate_certs }}" |
| 174 | gather_subset: |
| 175 | - disk_group |
| 176 | |
| 177 | - name: Get list of NFS Servers on Unity array. |
| 178 | info: |
| 179 | unispherehost: "{{ unispherehost }}" |
| 180 | username: "{{ username }}" |
| 181 | password: "{{ password }}" |
| 182 | validate_certs: "{{ validate_certs }}" |
| 183 | gather_subset: |
| 184 | - nfs_server |
| 185 | |
| 186 | - name: Get list of CIFS Servers on Unity array. |
| 187 | info: |
| 188 | unispherehost: "{{ unispherehost }}" |
| 189 | username: "{{ username }}" |
| 190 | password: "{{ password }}" |
| 191 | validate_certs: "{{ validate_certs }}" |
| 192 | gather_subset: |
| 193 | - cifs_server |
| 194 | |
| 195 | - name: Get list of ethernet ports on Unity array. |
| 196 | info: |
| 197 | unispherehost: "{{ unispherehost }}" |
| 198 | username: "{{ username }}" |
| 199 | password: "{{ password }}" |
| 200 | validate_certs: "{{ validate_certs }}" |
| 201 | gather_subset: |
| 202 | - ethernet_port |
| 203 | |
| 204 | - name: Get list of file interfaces on Unity array. |
| 205 | info: |
| 206 | unispherehost: "{{ unispherehost }}" |
| 207 | username: "{{ username }}" |
| 208 | password: "{{ password }}" |
| 209 | validate_certs: "{{ validate_certs }}" |
| 210 | gather_subset: |
| 211 | - file_interface |
| 212 | |
| 213 | - name: Get list of replication sessions on Unity array. |
| 214 | info: |
| 215 | unispherehost: "{{ unispherehost }}" |
| 216 | username: "{{ username }}" |
| 217 | password: "{{ password }}" |
| 218 | validate_certs: "{{ validate_certs }}" |
| 219 | gather_subset: |
| 220 | - replication_session |