/ansible-samples

Ansible and vagrant combined setup for integrated deployment prototype

Primary LanguageShellMIT LicenseMIT

Ansible Samples

Step 1

git clone https://github.com/gpproton/easy-ansible.git && \
cd easy-ansible && \
chmod +x ./play

Step 2

update inventory.ini or Vagratfile with appropriate info

Step 3

Ensure either virtual box or quem (lib-virt) are available

Step 4

./play setup

Step 5

./play run playbooks/ping.yaml
## OR
./play playbooks/ping.yaml

Various how examples for ansible usage

  • 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