Skip to content

Latest commit

 

History

History
226 lines (193 loc) · 8.47 KB

cisco.nxos.nxos_rpm_module.rst

File metadata and controls

226 lines (193 loc) · 8.47 KB

cisco.nxos.nxos_rpm

Install patch or feature rpms on Cisco NX-OS devices.

Version added: 1.0.0

  • Install software maintenance upgrade (smu) RPMS and 3rd party RPMS on Cisco NX-OS devices.
Parameter Choices/Defaults Comments
aggregate
list / elements=dictionary
List of RPM/patch definitions.
file_system
string
The remote file system of the device. If omitted, devices that support a file_system parameter will use their default values.
pkg
string / required
Name of the RPM package.
state
string
    Choices:
  • present
  • absent
If the state is present, the rpm will be installed, If the state is absent, it will be removed.
file_system
string
Default:
"bootflash"
The remote file system of the device. If omitted, devices that support a file_system parameter will use their default values.
pkg
string
Name of the RPM package.
state
string
    Choices:
  • present ←
  • absent
If the state is present, the rpm will be installed, If the state is absent, it will be removed.

Note

  • 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)
  • Unsupported for Cisco MDS
  • For patches, the minimum platform version needed is 7.0(3)I2(5)
  • For feature rpms, the minimum platform version needed is 7.0(3)I6(1)
  • The module manages the entire RPM lifecycle (Add, activate, commit, deactivate, remove)
  • For reload patches, this module is NOT idempotent until the patch is committed.
  • For information on using CLI and NX-API see the :ref:`NXOS Platform Options guide <nxos_platform_options>`
  • For more information on using Ansible to manage network devices see the :ref:`Ansible Network Guide <network_guide>`
  • For more information on using Ansible to manage Cisco devices see the Cisco integration page.
- cisco.nxos.nxos_rpm:
    pkg: nxos.sample-n9k_ALL-1.0.0-7.0.3.I7.3.lib32_n9000.rpm

Common return values are documented here, the following are the fields unique to this module:

Key Returned Description
commands
list
always
commands sent to the device

Sample:
['install add bootflash:nxos.sample-n9k_ALL-1.0.0-7.0.3.I7.3.lib32_n9000.rpm forced', 'install activate nxos.sample-n9k_ALL-1.0.0-7.0.3.I7.3.lib32_n9000 forced', 'install commit nxos.sample-n9k_ALL-1.0.0-7.0.3.I7.3.lib32_n9000']


Authors

  • Sai Chintalapudi (@saichint)