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
- Add public of users to be managed in sshkeys folder.
- Add usernames in respective files in group_vars folder
- Sample command to run playbook
ansible-playbook -i inv/prod/infra playbooks/site.yaml
- Add roles for basic package installations.
- Add more detailed explanation on structure of repo.
- Add files to manage servers in other environments.