diff options
author | B Stack <bgstack15@gmail.com> | 2018-01-20 10:05:01 -0500 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2018-01-20 10:05:01 -0500 |
commit | d337da41b882a701e6847fc7c2b12892862c5611 (patch) | |
tree | 72e7fb5e0c54e4fd905e8c222762910f08b16c52 /README.md | |
download | changepw-master.tar.gz changepw-master.tar.bz2 changepw-master.zip |
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..70b7b64 --- /dev/null +++ b/README.md @@ -0,0 +1,23 @@ +# Changepw +*Shell script that uses and aids ansible* +Use changepw to change a local user password on a set of hosts. + +These scripts work together and must be run in order. + +**prep.sh** makes a custom inventory file with all the hosts from the vcenter_matrix.csv list that can be ansible-pinged. If a system is unavailable for any reason, it will be excluded. +This script is not strictly necessary, but if you omit it you need to prepare the inventory-changepw.yml inventory file. + +**changepw.sh** has a hardcoded username in it but prompts for the new password and its confirmation. It saves those values to a vault file and then loops through the hard-coded sites and runs the ansible playbook that changes the local user password. + +### Usage + + cd /etc/ansible/shell/changepw + ./prep.sh + ./generate.sh + +### Dependencies +This tool depends on the output of the vcenter_matrix tool, so run it first. + +# Reference +## Weblinks +1. https://bgstack15.wordpress.com/2017/12/03/python-get-linux-compatible-password-hash/ |