Skip to content

utilities to manage root password based upon hash or not

Notifications You must be signed in to change notification settings

ifelsefi/ansible_password_reset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Reset Root User Password

This role will reset root user on servers either using random password or one set at command line

The chosen password, and server hostname, will be written to localhost log file

Message that password was reset will be sent to Slack

Requirements

You must have Ansible 2.0 installed.

You need a Slack server

Examples

If setting password:

ansible-playbook $ANSIBLE_HOME/utilities/reset_password.yml -e hosts=node113 --sudo -K "-e new_password=test12345"

If random password:

ansible-playbook $ANSIBLE_HOME/utilities/reset_password.yml -e hosts=node113 --sudo -K "-e random=[]"

TODO

Use ansible-vault for crypted password

Integrate with LastPass

About

utilities to manage root password based upon hash or not

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published