Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.33 KB

README.md

File metadata and controls

49 lines (34 loc) · 1.33 KB

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.

Cisco 4500-X

Copy Role

copy_flow

Install Role

install_flow

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