Debian Codegraph @

ansible_collections/cisco/nxos/docs/cisco.nxos.nxos_rpm_module.rst

raw
1 .. _cisco.nxos.nxos_rpm_module:
2
3
4 *******************
5 cisco.nxos.nxos_rpm
6 *******************
7
8 **Install patch or feature rpms on Cisco NX-OS devices.**
9
10
11 Version added: 1.0.0
12
13 .. contents::
14 :local:
15 :depth: 1
16
17
18 Synopsis
19 --------
20 - Install software maintenance upgrade (smu) RPMS and 3rd party RPMS on Cisco NX-OS devices.
21
22
23
24
25 Parameters
26 ----------
27
28 .. raw:: html
29
30 <table border=0 cellpadding=0 class="documentation-table">
31 <tr>
32 <th colspan="2">Parameter</th>
33 <th>Choices/<font color="blue">Defaults</font></th>
34 <th width="100%">Comments</th>
35 </tr>
36 <tr>
37 <td colspan="2">
38 <div class="ansibleOptionAnchor" id="parameter-"></div>
39 <b>aggregate</b>
40 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
41 <div style="font-size: small">
42 <span style="color: purple">list</span>
43 / <span style="color: purple">elements=dictionary</span>
44 </div>
45 </td>
46 <td>
47 </td>
48 <td>
49 <div>List of RPM/patch definitions.</div>
50 </td>
51 </tr>
52 <tr>
53 <td class="elbow-placeholder"></td>
54 <td colspan="1">
55 <div class="ansibleOptionAnchor" id="parameter-"></div>
56 <b>file_system</b>
57 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
58 <div style="font-size: small">
59 <span style="color: purple">string</span>
60 </div>
61 </td>
62 <td>
63 </td>
64 <td>
65 <div>The remote file system of the device. If omitted, devices that support a file_system parameter will use their default values.</div>
66 </td>
67 </tr>
68 <tr>
69 <td class="elbow-placeholder"></td>
70 <td colspan="1">
71 <div class="ansibleOptionAnchor" id="parameter-"></div>
72 <b>pkg</b>
73 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
74 <div style="font-size: small">
75 <span style="color: purple">string</span>
76 / <span style="color: red">required</span>
77 </div>
78 </td>
79 <td>
80 </td>
81 <td>
82 <div>Name of the RPM package.</div>
83 </td>
84 </tr>
85 <tr>
86 <td class="elbow-placeholder"></td>
87 <td colspan="1">
88 <div class="ansibleOptionAnchor" id="parameter-"></div>
89 <b>state</b>
90 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
91 <div style="font-size: small">
92 <span style="color: purple">string</span>
93 </div>
94 </td>
95 <td>
96 <ul style="margin: 0; padding: 0"><b>Choices:</b>
97 <li>present</li>
98 <li>absent</li>
99 </ul>
100 </td>
101 <td>
102 <div>If the state is present, the rpm will be installed, If the state is absent, it will be removed.</div>
103 </td>
104 </tr>
105
106 <tr>
107 <td colspan="2">
108 <div class="ansibleOptionAnchor" id="parameter-"></div>
109 <b>file_system</b>
110 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
111 <div style="font-size: small">
112 <span style="color: purple">string</span>
113 </div>
114 </td>
115 <td>
116 <b>Default:</b><br/><div style="color: blue">"bootflash"</div>
117 </td>
118 <td>
119 <div>The remote file system of the device. If omitted, devices that support a file_system parameter will use their default values.</div>
120 </td>
121 </tr>
122 <tr>
123 <td colspan="2">
124 <div class="ansibleOptionAnchor" id="parameter-"></div>
125 <b>pkg</b>
126 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
127 <div style="font-size: small">
128 <span style="color: purple">string</span>
129 </div>
130 </td>
131 <td>
132 </td>
133 <td>
134 <div>Name of the RPM package.</div>
135 </td>
136 </tr>
137 <tr>
138 <td colspan="2">
139 <div class="ansibleOptionAnchor" id="parameter-"></div>
140 <b>state</b>
141 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
142 <div style="font-size: small">
143 <span style="color: purple">string</span>
144 </div>
145 </td>
146 <td>
147 <ul style="margin: 0; padding: 0"><b>Choices:</b>
148 <li><div style="color: blue"><b>present</b>&nbsp;&larr;</div></li>
149 <li>absent</li>
150 </ul>
151 </td>
152 <td>
153 <div>If the state is present, the rpm will be installed, If the state is absent, it will be removed.</div>
154 </td>
155 </tr>
156 </table>
157 <br/>
158
159
160 Notes
161 -----
162
163 .. note::
164 - Tested against NXOSv 7.0(3)I2(5), 7.0(3)I4(6), 7.0(3)I5(3), 7.0(3)I6(1), 7.0(3)I7(3)
165 - Unsupported for Cisco MDS
166 - For patches, the minimum platform version needed is 7.0(3)I2(5)
167 - For feature rpms, the minimum platform version needed is 7.0(3)I6(1)
168 - The module manages the entire RPM lifecycle (Add, activate, commit, deactivate, remove)
169 - For reload patches, this module is NOT idempotent until the patch is committed.
170 - For information on using CLI and NX-API see the :ref:`NXOS Platform Options guide <nxos_platform_options>`
171 - For more information on using Ansible to manage network devices see the :ref:`Ansible Network Guide <network_guide>`
172 - For more information on using Ansible to manage Cisco devices see the `Cisco integration page <https://www.ansible.com/integrations/networks/cisco>`_.
173
174
175
176 Examples
177 --------
178
179 .. code-block:: yaml
180
181 - cisco.nxos.nxos_rpm:
182 pkg: nxos.sample-n9k_ALL-1.0.0-7.0.3.I7.3.lib32_n9000.rpm
183
184
185
186 Return Values
187 -------------
188 Common return values are documented `here <https://docs.ansible.com/ansible/latest/reference_appendices/common_return_values.html#common-return-values>`_, the following are the fields unique to this module:
189
190 .. raw:: html
191
192 <table border=0 cellpadding=0 class="documentation-table">
193 <tr>
194 <th colspan="1">Key</th>
195 <th>Returned</th>
196 <th width="100%">Description</th>
197 </tr>
198 <tr>
199 <td colspan="1">
200 <div class="ansibleOptionAnchor" id="return-"></div>
201 <b>commands</b>
202 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
203 <div style="font-size: small">
204 <span style="color: purple">list</span>
205 </div>
206 </td>
207 <td>always</td>
208 <td>
209 <div>commands sent to the device</div>
210 <br/>
211 <div style="font-size: smaller"><b>Sample:</b></div>
212 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">[&#x27;install add bootflash:nxos.sample-n9k_ALL-1.0.0-7.0.3.I7.3.lib32_n9000.rpm forced&#x27;, &#x27;install activate nxos.sample-n9k_ALL-1.0.0-7.0.3.I7.3.lib32_n9000 forced&#x27;, &#x27;install commit nxos.sample-n9k_ALL-1.0.0-7.0.3.I7.3.lib32_n9000&#x27;]</div>
213 </td>
214 </tr>
215 </table>
216 <br/><br/>
217
218
219 Status
220 ------
221
222
223 Authors
224 ~~~~~~~
225
226 - Sai Chintalapudi (@saichint)