Skip to content

vermilion-tech/ansible

Repository files navigation

Vermilion Tech's Ansible Repository


Setup

  1. Install Ansible

https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html

  • We also recommend disabling host key checking

    • https://docs.ansible.com/ansible/latest/user_guide/intro_getting_started.html#host-key-checking
  • We also recommend setting up a default user to connect with ansible

    • $ vim ~/.ansible.cfg
      ...
      [defaults]
      remote_user = root
      private_key_file = ~/.ssh/[email protected]_rsa
      ...
  1. Clone the repository

$ git clone [email protected]:vermilion-tech/ansible.git

  1. Install Ansible Roles from Ansible Galaxy
  • $ ansible-galaxy install -r requirements.yml
  1. Execute Master Playbook
  • $ ansible-playbook -i digital_ocean.py playbook.yml

Playbooks Descriptions

  • playbook.yml

    • Master playbook that includes both ubuntu-base.yml and loadbalancers.yml playbooks
  • ubuntu-base.yml

    • Bootstraps the target with Python2 minimal by including bootstrap-ubuntu.yml
    • Includes the vermilion_tech.ansible_role_ubuntu_base role
    • Targets Droplets tagged ubuntu-base
  • loadbalancers.yml

    • Installs Traefik as a Docker container on Droplets tagged loadbalancers

References

About

Ansible Playbooks!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages