ansible.builtin.nxos_rpm (v2.7.16) — module

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

| "added in version" 2.7 of ansible.builtin"

Authors: Sai Chintalapudi (@saichint)

preview | supported by network

Install Ansible via pip

Install with pip install ansible==2.7.16

Description

Install software maintenance upgrade (smu) RPMS and 3rd party RPMS on Cisco NX-OS devices.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- nxos_rpm:
    pkg: "nxos.sample-n9k_ALL-1.0.0-7.0.3.I7.3.lib32_n9000.rpm"

Inputs

    
pkg:
    description:
    - Name of the RPM package.
    required: true

state:
    choices:
    - present
    - absent
    default: present
    description:
    - If the state is present, the rpm will be installed, If the state is absent, it will
      be removed.

aggregate:
    description:
    - List of RPM/patch definitions.

file_system:
    default: bootflash
    description:
    - The remote file system of the device. If omitted, devices that support a file_system
      parameter will use their default values.

Outputs

commands:
  description: commands sent to the device
  returned: always
  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
  type: list