ansible / ansible.builtin / v2.7.16 / module / nxos_rpm 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 networkansible.builtin.nxos_rpm (v2.7.16) — module
pip
Install with pip install ansible==2.7.16
Install software maintenance upgrade (smu) RPMS and 3rd party RPMS on Cisco NX-OS devices.
- nxos_rpm: pkg: "nxos.sample-n9k_ALL-1.0.0-7.0.3.I7.3.lib32_n9000.rpm"
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.
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