| 1 | --- |
| 2 | - name: Dell OpenManage Ansible iDRAC License Management. |
| 3 | hosts: idrac |
| 4 | gather_facts: false |
| 5 | |
| 6 | tasks: |
| 7 | - name: Export a license from iDRAC to local |
| 8 | dellemc.openmanage.idrac_license: |
| 9 | idrac_ip: "192.168.0.1" |
| 10 | idrac_user: "username" |
| 11 | idrac_password: "password" |
| 12 | ca_path: "/path/to/ca_cert.pem" |
| 13 | license_id: "LICENSE_123" |
| 14 | export: true |
| 15 | share_parameters: |
| 16 | share_type: "local" |
| 17 | share_name: "/path/to/share" |
| 18 | file_name: "license_file" |
| 19 | delegate_to: localhost |
| 20 | |
| 21 | - name: Export a license from iDRAC to NFS share |
| 22 | dellemc.openmanage.idrac_license: |
| 23 | idrac_ip: "192.168.0.1" |
| 24 | idrac_user: "username" |
| 25 | idrac_password: "password" |
| 26 | ca_path: "/path/to/ca_cert.pem" |
| 27 | license_id: "LICENSE_123" |
| 28 | export: true |
| 29 | share_parameters: |
| 30 | share_type: "nfs" |
| 31 | share_name: "/path/to/share" |
| 32 | file_name: "license_file" |
| 33 | ip_address: "192.168.0.1" |
| 34 | delegate_to: localhost |
| 35 | |
| 36 | - name: Export a license from iDRAC to CIFS share |
| 37 | dellemc.openmanage.idrac_license: |
| 38 | idrac_ip: "192.168.0.1" |
| 39 | idrac_user: "username" |
| 40 | idrac_password: "password" |
| 41 | ca_path: "/path/to/ca_cert.pem" |
| 42 | license_id: "LICENSE_123" |
| 43 | export: true |
| 44 | share_parameters: |
| 45 | share_type: "cifs" |
| 46 | share_name: "/path/to/share" |
| 47 | file_name: "license_file" |
| 48 | ip_address: "192.168.0.1" |
| 49 | username: "username" |
| 50 | password: "password" |
| 51 | workgroup: "workgroup" |
| 52 | delegate_to: localhost |
| 53 | |
| 54 | - name: Export a license from iDRAC to HTTP share via proxy |
| 55 | dellemc.openmanage.idrac_license: |
| 56 | idrac_ip: "192.168.0.1" |
| 57 | idrac_user: "username" |
| 58 | idrac_password: "password" |
| 59 | ca_path: "/path/to/ca_cert.pem" |
| 60 | license_id: "LICENSE_123" |
| 61 | export: true |
| 62 | share_parameters: |
| 63 | share_type: "http" |
| 64 | share_name: "/path/to/share" |
| 65 | file_name: "license_file" |
| 66 | ip_address: "192.168.0.1" |
| 67 | username: "username" |
| 68 | password: "password" |
| 69 | proxy_support: "parameters_proxy" |
| 70 | proxy_type: socks |
| 71 | proxy_server: "192.168.0.2" |
| 72 | proxy_port: 1080 |
| 73 | proxy_username: "proxy_username" |
| 74 | proxy_password: "proxy_password" |
| 75 | delegate_to: localhost |
| 76 | |
| 77 | - name: Export a license from iDRAC to HTTPS share |
| 78 | dellemc.openmanage.idrac_license: |
| 79 | idrac_ip: "192.168.0.1" |
| 80 | idrac_user: "username" |
| 81 | idrac_password: "password" |
| 82 | ca_path: "/path/to/ca_cert.pem" |
| 83 | license_id: "LICENSE_123" |
| 84 | export: true |
| 85 | share_parameters: |
| 86 | share_type: "https" |
| 87 | share_name: "/path/to/share" |
| 88 | file_name: "license_file" |
| 89 | ip_address: "192.168.0.1" |
| 90 | username: "username" |
| 91 | password: "password" |
| 92 | ignore_certificate_warning: "on" |
| 93 | delegate_to: localhost |
| 94 | |
| 95 | - name: Import a license to iDRAC from local |
| 96 | dellemc.openmanage.idrac_license: |
| 97 | idrac_ip: 198.162.0.1 |
| 98 | idrac_user: "username" |
| 99 | idrac_password: "password" |
| 100 | ca_path: "/path/to/ca_cert.pem" |
| 101 | import: true |
| 102 | share_parameters: |
| 103 | file_name: "license_file_name.xml" |
| 104 | share_type: local |
| 105 | share_name: "/path/to/share" |
| 106 | delegate_to: localhost |
| 107 | |
| 108 | - name: Import a license to iDRAC from NFS share |
| 109 | dellemc.openmanage.idrac_license: |
| 110 | idrac_ip: 198.162.0.1 |
| 111 | idrac_user: "username" |
| 112 | idrac_password: "password" |
| 113 | ca_path: "/path/to/ca_cert.pem" |
| 114 | import: true |
| 115 | share_parameters: |
| 116 | file_name: "license_file_name.xml" |
| 117 | share_type: nfs |
| 118 | ip_address: "192.168.0.1" |
| 119 | share_name: "/path/to/share" |
| 120 | delegate_to: localhost |
| 121 | |
| 122 | - name: Import a license to iDRAC from CIFS share |
| 123 | dellemc.openmanage.idrac_license: |
| 124 | idrac_ip: 198.162.0.1 |
| 125 | idrac_user: "username" |
| 126 | idrac_password: "password" |
| 127 | ca_path: "/path/to/ca_cert.pem" |
| 128 | import: true |
| 129 | share_parameters: |
| 130 | file_name: "license_file_name.xml" |
| 131 | share_type: cifs |
| 132 | ip_address: "192.168.0.1" |
| 133 | share_name: "/path/to/share" |
| 134 | username: "username" |
| 135 | password: "password" |
| 136 | delegate_to: localhost |
| 137 | |
| 138 | - name: Import a license to iDRAC from HTTP share |
| 139 | dellemc.openmanage.idrac_license: |
| 140 | idrac_ip: 198.162.0.1 |
| 141 | idrac_user: "username" |
| 142 | idrac_password: "password" |
| 143 | ca_path: "/path/to/ca_cert.pem" |
| 144 | import: true |
| 145 | share_parameters: |
| 146 | file_name: "license_file_name.xml" |
| 147 | share_type: http |
| 148 | ip_address: "192.168.0.1" |
| 149 | share_name: "/path/to/share" |
| 150 | username: "username" |
| 151 | password: "password" |
| 152 | delegate_to: localhost |
| 153 | |
| 154 | - name: Delete a License from iDRAC |
| 155 | dellemc.openmanage.idrac_license: |
| 156 | idrac_ip: 198.162.0.1 |
| 157 | idrac_user: "username" |
| 158 | idrac_password: "password" |
| 159 | ca_path: "/path/to/ca_cert.pem" |
| 160 | license_id: "LICENCE_123" |
| 161 | delete: true |
| 162 | delegate_to: localhost |