Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.
/ ansible-samples Public archive

Ansible and vagrant combined setup for integrated deployment prototype

License

Notifications You must be signed in to change notification settings

gpproton/ansible-samples

Repository files navigation

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

About

Ansible and vagrant combined setup for integrated deployment prototype

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages