Skip to content

Ansible playbook and role to add and delete users with pubkeys

Notifications You must be signed in to change notification settings

keefeere/useradddel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Manage User's SSH Keys on servers (requires upload to ./roles/users/files your pubkey with filename = yourname, also skip grant_sudo var if user should not have a sudo, use limit if required),

action can be add,create,update,rm,del,remove

Additionally if you want to use another key file for deploy user: --key ~/.ssh/keys/makdiuk

time ansible-playbook ./playbooks/pb_add_user.yml -i ./inventory.hosts -e "deploy_user=root action=add grant_sudo=yes username=yourname" --limit='yourhost' -vv | sed 's/\\n/\n/g'

About

Ansible playbook and role to add and delete users with pubkeys

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published