git clone https://github.com/gpproton/easy-ansible.git && \
cd easy-ansible && \
chmod +x ./play
update inventory.ini or Vagratfile with appropriate info
Ensure either virtual box or quem (lib-virt) are available
./play setup
./play run playbooks/ping.yaml
## OR
./play playbooks/ping.yaml
- User & permission setup
- Generate SSH key
- Generate ansible password from file
- Create new ansible user
- Copy SSH public key to servers
- Disable root password login
- System setup
- host file setup
- Setup base packages
- Update all packages repo
- Upgrade packages
- Set hostnames
- Set desired timezone
- Set sysctl limits
- Set system ulimits
- Glusterfs setup
- Install gluster packages
- Gluster firewall changes
- Cluster setup
- Volume and bricks setup
- fstab mount setup
- Docker setup
- install docker
- install docker compose
- Add custom docker config
- Add ansible user to docker group
- initialize docker swarm
- Add masters to swarm
- Add workers to swarm
- Add roles to cluster leave, re-initialization
- Sample servies
- nignx highly available service