.. _cisco.nxos.nxos_rpm_module: ******************* cisco.nxos.nxos_rpm ******************* **Install patch or feature rpms on Cisco NX-OS devices.** Version added: 1.0.0 .. contents:: :local: :depth: 1 Synopsis -------- - Install software maintenance upgrade (smu) RPMS and 3rd party RPMS on Cisco NX-OS devices. Parameters ---------- .. raw:: html
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.

Notes ----- .. 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 ` - For more information on using Ansible to manage network devices see the :ref:`Ansible Network Guide ` - For more information on using Ansible to manage Cisco devices see the `Cisco integration page `_. Examples -------- .. code-block:: yaml - cisco.nxos.nxos_rpm: pkg: nxos.sample-n9k_ALL-1.0.0-7.0.3.I7.3.lib32_n9000.rpm Return Values ------------- Common return values are documented `here `_, the following are the fields unique to this module: .. raw:: html
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']


Status ------ Authors ~~~~~~~ - Sai Chintalapudi (@saichint)