Skip to content

gore28akshay/manage-ssh-users-using-ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Ansible to manage ssh users in infrastruture

Folder Structure

.
├── inv
│   ├── production
│   │   ├── dba
│   │   ├── group_vars
│   │   │   ├── all
│   │   │   │   └── vars.yaml
│   │   │   ├── dba.yaml
│   │   │   ├── jumpbox.yaml
│   │   │   ├── mongo.yaml
│   │   │   ├── redis.yaml
│   │   │   └── web.yaml
│   │   ├── infra
│   │   └── web
│   └── sit
├── playbooks
│   ├── manage_ssh_users
│   │   ├── tasks
│   │   │   └── main.yaml
│   │   └── templates
│   │       └── etc
│   │           └── sudoers
│   ├── net_tools
│   └── site.yaml
└── sshkeys
    ├── user_1.pub
    └── user_2.pub

How to use this repo

  1. Add public of users to be managed in sshkeys folder.
  2. Add usernames in respective files in group_vars folder
  3. Sample command to run playbook ansible-playbook -i inv/prod/infra playbooks/site.yaml

To be done

  • Add roles for basic package installations.
  • Add more detailed explanation on structure of repo.
  • Add files to manage servers in other environments.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published