https://github.com/zstone12/remote_user_manager
https://github.com/zstone12/remote_user_manager
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zstone12/remote_user_manager
- Owner: zstone12
- Created: 2019-01-25T15:43:50.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-03-01T15:56:42.000Z (over 6 years ago)
- Last Synced: 2025-01-14T14:14:08.389Z (over 1 year ago)
- Language: Python
- Size: 32.2 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
user ansible to manage user state on windows or linux.
command_lists:
on linux:
create_user
remove_user
ban_user
unban_user
on windows:
create_user
change_user_password
used to use except and shell-scripts To achieve the same effect.
both are available.
examples:
ansible-playbook create_user.yaml --extra-vars "hosts=linux01 name=zhihu password={{ '123456' | password_hash('sha512', 'mysecretsalt') }}"
ansible-playbook ban_user.yaml --extra-vars "hosts=linux01 name=zhihu"
ansible-playbook unban_user.yaml --extra-vars "hosts=linux01 name=zhihu"
ansible-playbook remove_user.yaml --extra-vars "hosts=linux01 name=zhihu"
ansible-playbook win_user.yaml --extra-vars "host=windows02 user=xupt password=12345"
ansible-playbook create_user_master.yaml --extra-vars "hosts=master name=zhihu password={{ '123456' | password_hash('sha512', 'mysecretsalt') }}"