ansible_cisco_ios_upgrade
ansible_cisco_ios_upgrade copied to clipboard
Example of Cisco image upgrade with Ansible
Example of Cisco image upgrade with Ansible
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.
Copy Role
Install Role
4500_roles.yml
---
- name: UPGRADE 4500X FIRMWARE
hosts: all
connection: network_cli
gather_facts: no
roles:
- ansible-network.network-engine
- 4500_copy_image
- 4500_install_image