| 1 | # idrac_job_queue |
| 2 | |
| 3 | Role to manage the iDRAC(iDRAC8 and iDRAC9 only) lifecycle controller job queue. |
| 4 | |
| 5 | ## Requirements |
| 6 | |
| 7 | ### Development |
| 8 | Requirements to develop and contribute to the role. |
| 9 | ``` |
| 10 | ansible |
| 11 | docker |
| 12 | molecule |
| 13 | python |
| 14 | ``` |
| 15 | ### Production |
| 16 | Requirements to use the role. |
| 17 | ``` |
| 18 | ansible |
| 19 | python |
| 20 | ``` |
| 21 | |
| 22 | ### Ansible collections |
| 23 | Collections required to use the role |
| 24 | ``` |
| 25 | dellemc.openmanage |
| 26 | ``` |
| 27 | |
| 28 | ## Role Variables |
| 29 | |
| 30 | <table> |
| 31 | <thead> |
| 32 | <tr> |
| 33 | <th>Name</th> |
| 34 | <th>Required</th> |
| 35 | <th>Default Value</th> |
| 36 | <th>Choices</th> |
| 37 | <th>Type</th> |
| 38 | <th>Description</th> |
| 39 | </tr> |
| 40 | </thead> |
| 41 | <tbody> |
| 42 | <tr> |
| 43 | <td>hostname</td> |
| 44 | <td>true</td> |
| 45 | <td></td> |
| 46 | <td></td> |
| 47 | <td>str</td> |
| 48 | <td>- iDRAC IP Address</td> |
| 49 | </tr> |
| 50 | <tr> |
| 51 | <td>username</td> |
| 52 | <td>true</td> |
| 53 | <td></td> |
| 54 | <td></td> |
| 55 | <td>str</td> |
| 56 | <td>- iDRAC username</td> |
| 57 | </tr> |
| 58 | <tr> |
| 59 | <td>password</td> |
| 60 | <td>true</td> |
| 61 | <td></td> |
| 62 | <td></td> |
| 63 | <td>str</td> |
| 64 | <td>- iDRAC user password.</td> |
| 65 | </tr> |
| 66 | <tr> |
| 67 | <td>https_port</td> |
| 68 | <td>false</td> |
| 69 | <td>443</td> |
| 70 | <td></td> |
| 71 | <td>int</td> |
| 72 | <td>- iDRAC port.</td> |
| 73 | </tr> |
| 74 | <tr> |
| 75 | <td>validate_certs</td> |
| 76 | <td>false</td> |
| 77 | <td>true</td> |
| 78 | <td></td> |
| 79 | <td>bool</td> |
| 80 | <td>- If C(false), the SSL certificates will not be validated.<br>- Configure C(false) only on personally controlled sites where self-signed certificates are used.</td> |
| 81 | </tr> |
| 82 | <tr> |
| 83 | <td>ca_path</td> |
| 84 | <td>false</td> |
| 85 | <td></td> |
| 86 | <td></td> |
| 87 | <td>path</td> |
| 88 | <td>- The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation.</td> |
| 89 | </tr> |
| 90 | <tr> |
| 91 | <td>https_timeout</td> |
| 92 | <td>false</td> |
| 93 | <td>30</td> |
| 94 | <td></td> |
| 95 | <td>int</td> |
| 96 | <td>- The HTTPS socket level timeout in seconds.</td> |
| 97 | </tr> |
| 98 | <tr> |
| 99 | <td>clear_job_queue</td> |
| 100 | <td>false</td> |
| 101 | <td>false</td> |
| 102 | <td></td> |
| 103 | <td>bool</td> |
| 104 | <td>- Clears the job queue of the iDRAC.</td> |
| 105 | </tr> |
| 106 | <tr> |
| 107 | <td>job_id</td> |
| 108 | <td>false</td> |
| 109 | <td>false</td> |
| 110 | <td></td> |
| 111 | <td>str</td> |
| 112 | <td>- Id of the job to be deleted.<br>- If I(clear_job_queue) is C(true) then the I(job_id) will be ignored.</td> |
| 113 | </tr> |
| 114 | <tr> |
| 115 | <td>force</td> |
| 116 | <td>false</td> |
| 117 | <td>false</td> |
| 118 | <td></td> |
| 119 | <td>bool</td> |
| 120 | <td>- Clears the job queue of the iDRAC forcefully.</td> |
| 121 | </tr> |
| 122 | </tbody> |
| 123 | </table> |
| 124 | |
| 125 | ## Fact variables |
| 126 | |
| 127 | <table> |
| 128 | <thead> |
| 129 | <tr> |
| 130 | <th>Name</th> |
| 131 | <th>Sample</th> |
| 132 | <th>Description</th> |
| 133 | </tr> |
| 134 | </thead> |
| 135 | <tbody> |
| 136 | <tr> |
| 137 | <td>idrac_job_queue_out</td> |
| 138 | <td>{msg: "The job queue can been cleared successfully" |
| 139 | }</td> |
| 140 | <td>Module output of idrac job queue</td> |
| 141 | </tbody> |
| 142 | </table> |
| 143 | |
| 144 | ## Examples |
| 145 | ----- |
| 146 | |
| 147 | ``` |
| 148 | - name: Delete a Job |
| 149 | ansible.builtin.include_role: |
| 150 | name: dellemc.openmanage.idrac_job_queue: |
| 151 | vars: |
| 152 | hostname: "192.168.0.1" |
| 153 | username: "username" |
| 154 | password: "password" |
| 155 | job_id: JID_XXXXXXXXXXXX |
| 156 | |
| 157 | - name: Clear the job queue |
| 158 | ansible.builtin.include_role: |
| 159 | name: dellemc.openmanage.idrac_job_queue: |
| 160 | vars: |
| 161 | hostname: "192.168.0.1" |
| 162 | username: "username" |
| 163 | password: "password" |
| 164 | clear_job_queue: true |
| 165 | |
| 166 | - name: Clear the job queue forcefully |
| 167 | ansible.builtin.include_role: |
| 168 | name: dellemc.openmanage.idrac_job_queue: |
| 169 | vars: |
| 170 | hostname: "192.168.0.1" |
| 171 | username: "username" |
| 172 | password: "password" |
| 173 | clear_job_queue: true |
| 174 | force: true |
| 175 | ``` |
| 176 | |
| 177 | ## Author Information |
| 178 | ------------------ |
| 179 | |
| 180 | Dell Technologies <br> |
| 181 | Kritika Bhateja ([email protected]) 2023 |