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.
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.)
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.
- Python 3.8+
- Ansible (tested with current releases)
- SSH access to your target embedded Linux / Cisco devices
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!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 -KReplace cisco_device_host_ip with the IP or hostname of your target device(s) as defined in inventory/hosts.yaml.