Cloud provider agnostic automation for provisioning node with Docker daemon.
- ansible
- Run
make install-roles
Use your favourite cloud and create instance with Ubuntu 20.04 Don't forget to:
- configure ssh keys
- obtain public IP address
touch inventory/inventory
For the first run you propbably will have something like this:
[all]
docker-0 ansible_host=12.34.56.78 ansible_port=22 ansible_user=ubuntu
ansible-playbook -vv -i inventory/inventory playbooks/docker.yml
With default variables you can connect like:
ssh 12.34.56.78 -l ansible -p 2345
Ansible created ssh user, changed sshd ports and etc, so we need to update inventory file for next runs:
[all]
docker-0 ansible_host=12.34.56.78 ansible_port=2345 ansible_user=ansible