This repo contains examples of playbooks and roles that upgrade an image on a switch using the ios_command module and ansible-network.network_engine.
One of the use cases for Ansible and the networking modules is to grab information in real time from the network. These tasks will do just that, including verify available disk space as well as which files the device currently has on flash.
---
- name: UPGRADE 4500X FIRMWARE
hosts: all
connection: network_cli
gather_facts: no
roles:
- ansible-network.network-engine
- 4500_copy_image
- 4500_install_image
This repo passed all checks using ansible-lint