Basic Ansible Setup for a server with Traefik, Portainer, Autoheal and Watchtower.
Clone this repository with submodules:
git clone --recurse-submodules https://github.com/ct-Open-Source/telerec-t-base.gitFirst install sshpass for the first login without public key. On Ubuntu or Debian use:
sudo apt install sshpassThen install Ansible.
We recommend using pipenv with the Pipfile in the repository:
cd Pluto
pipenv installThe following commands use pipenv to run the ansible commands from within the virtual environment.
If you installed Ansible without a virtualenv remove the trailing pipenv run from the following commands.
Ansible can be extended in different ways. To keep it small by default there is a plug-in repository called "Ansible Galaxy". For this setup you need these two plug-ins (also called "modules"):
pipenv run ansible-galaxy collection install ansible.posix
pipenv run ansible-galaxy collection install community.general
pipenv run ansible-galaxy role install geerlingguy.dockerFor the first server setup you need to allow login with --ask-pass:
pipenv run ansible-playbook initial-setup.yml -i hosts --ask-pass --ask-become-passpipenv run ansible-playbook server-setup.yml -i hosts