Skip to content

About

My Cisco Code Exchange repo dedicated to cisco devices automation scripts!

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

15 Commits

Folders and files

Repository files navigation

Ansible Cisco Projects

GitHub Cisco Code Exchange Profile Views


✨ Ingenious Way to Update Passwords for Devices at Once — No Vault Needed!

This repository demonstrates an Ansible-based approach to update device passwords across multiple embedded Linux / Cisco devices simultaneously — without requiring HashiCorp Vault or other secret-management tooling. It's intended for streamlined operations, initial provisioning, or environments where a simple, repeatable password-update mechanism is needed.


📣 Cisco Code Exchange Contribution Status

This project is officially published and listed on the Cisco Code Exchange platform, confirming its open-source contribution status.

⭐ Launch INTERACTIVE README & Verify Contribution Status (Live) ⭐ (Click above to see the dynamic web version hosted via Cisco Code Exchange / GitHub Pages if available.)


📚 Project Overview

This project leverages the power of Ansible to provide a simple yet effective solution for security management across embedded Linux devices, particularly within a Cisco environment.

Key focus:

  • Update passwords across many devices in one run.
  • Keep credentials out of shell history by prompting at runtime.
  • No external Vault dependency — simple, practical, and fast for many operational workflows.

🚀 Getting Started

Prerequisites

  • Python 3.8+
  • Ansible (tested with current releases)
  • SSH access to your target embedded Linux / Cisco devices

Installation

git clone https://github.com/pradeepbabar/cisco_projects.git
cd cisco_projects
python3 -m venv venv
source venv/bin/activate
# No other dependencies/collections/modules are required!

Usage

Execute the playbook like this. The -k and -K flags prompt you for the device's SSH connection password and privilege-escalation (enable/sudo) password respectively — keeping credentials out of the command history.

ansible-playbook -i inventory multiple_pass_change.yml \
  -e "hostlist=cisco_device_host_ip" \
  -u root -k -K

Replace cisco_device_host_ip with the IP or hostname of your target device(s) as defined in inventory/hosts.yaml.

About

My Cisco Code Exchange repo dedicated to cisco devices automation scripts!

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages