/change_password

simple example to change the password on a network platform

Change Password Example

This demonstration playbook shows how to easily automate changing a password for many switches simultaneously. In Red Hat Ansible Tower the survey tool becomes really useful here. In Red Hat Ansible Engine as shown here we can use the prompt module.

Run the playbook like this:

ansible-playbook password.yml

The playbook will ask the user two questions:

what user do you want to change?:
what is the password you want?:

It will then use the nxos_config module to change the password.

To view the playbook click here.


Red Hat Ansible Automation

Red Hat® Ansible® Automation includes three products:

  • Red Hat® Ansible® Engine: a fully supported product built on the foundational capabilities of the Ansible project.

  • Red Hat® Ansible® Networking Add-On: provides support for select networking modules from Arista (EOS), Cisco (IOS, IOS XR, NX-OS), Juniper (Junos OS), Open vSwitch, and VyOS.

  • Red Hat® Ansible® Tower: makes it easy to scale automation, manage complex deployments and speed productivity. Extend the power of Ansible with workflows to streamline jobs and simple tools to share solutions with your team.

Want more info? Read this blog post for more info about Engine, the networking add-on and Tower