Skip to content

arynishere/ChangePassword

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ChangePassword Ansible Playbook

This repository contains a Bash script and an Ansible playbook to streamline the process of changing SSH passwords on multiple servers.

Prerequisites

  • Ansible
  • Bash (should be available by default on most Unix-like systems)

Getting Started

  1. Clone the repository:

    git clone https://github.com/arynishere/ChangePassword.git
    cd ChangePassword
  2. Run the Bash script:

    ./chpass.sh

    The script will prompt you for a username, a filename, and a hostname. The filename should contain necessary variables (e.g., new_ssh_password, mysecretsalt,) in YAML format and hostname in txt format.

    now just wait for the script to finish, you can check the script to see how the playbook is deployed.

Example variables file (vault.yml)

# vault.yml
new_ssh_password: 'your_plain_password'
mysecretsalt: 'your_secret_salt'

About

Change Password with ansible

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages