Skip to content

ambith/ssh-access

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

I have created new user called "ambith" and doing operation on that.


ssh-access
Grant/Revoke SSH access to a group of instances to a user.

To add new user and grant SSH access.
ansible-playbook -i inventory/ -e "action=grant" playbooks/ssh.yml

To grant SSH access to an existing user.
ansible-playbook -i inventory/ -e "action=grant" playbooks/ssh.yml --skip-tags=add

To revoke SSH access from a user.
ansible-playbook -i inventory/ -e "action=revoke" playbooks/ssh.yml --skip-tags=remove

To remove user, hence revoke SSH access as well.
ansible-playbook -i inventory/ -e "action=revoke" playbooks/ssh.yml

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published