diff --git a/.ansible/roles/requirements.yaml b/.ansible/roles/requirements.yaml index d19d852..faf14dc 100644 --- a/.ansible/roles/requirements.yaml +++ b/.ansible/roles/requirements.yaml @@ -11,4 +11,4 @@ - name: docker scm: git src: "git@github.com:Diesel-Net/ansible-role-docker.git" - version: 1.5.1 + version: 1.8.0 diff --git a/README.md b/README.md index 6b292f4..14455e0 100644 --- a/README.md +++ b/README.md @@ -3,16 +3,29 @@ # swarm-bootstrapper Leveraging Docker Engine's built-in [Swarm Mode](https://docs.docker.com/engine/swarm/) on Ubuntu Server LTS Virtual Machines. This is the first piece of code that should be executed against a fresh host on the `diesel.net` domain -## Requirements -- Ansible 2.10+ +## Toolchain + +- ansible 4.7.0 +- ansible-core 2.11.6 +- python 3.9.7 ## Installing Dependencies + +Install necessary ansible roles. ```bash ansible-galaxy install -r .ansible/roles/requirements.yaml -p .ansible/roles --force ``` +Install `dns-python` required for [`community.general.dig`](https://docs.ansible.com/ansible/latest/collections/community/general/dig_lookup.html) +```bash +pip3 install -r .ansible/files/requirements.txt +``` + ## Configure Swarm -Right now each environment is defined as an independent Virtual Machine (single-node swarm leaders) in each respective ansible inventory. You will need to have the ansible-vault password file configured on your machine. Please read the relevant [ansible documentation](https://docs.ansible.com/ansible/latest/user_guide/vault.html#setting-a-default-password-source) for more information. + +You will need to have the ansible-vault password file configured on your machine. Please read the relevant [ansible documentation](https://docs.ansible.com/ansible/latest/user_guide/vault.html#setting-a-default-password-source) for more information. + +Bootstrap the `development` fleet. ```bash ansible-playbook .ansible/deploy.yaml -i .ansible/inventory/development ```