- 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 ...
-
- Clone the repository
$ git clone [email protected]:vermilion-tech/ansible.git
- Install Ansible Roles from Ansible Galaxy
$ ansible-galaxy install -r requirements.yml
- Execute Master Playbook
$ ansible-playbook -i digital_ocean.py playbook.yml
-
playbook.yml
- Master playbook that includes both
ubuntu-base.yml
andloadbalancers.yml
playbooks
- Master playbook that includes both
-
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
- Bootstraps the target with Python2 minimal by including
-
loadbalancers.yml
- Installs Traefik as a Docker container on Droplets tagged
loadbalancers
- Installs Traefik as a Docker container on Droplets tagged