Skip to content

Basic Ansible Setup for a server with Traefik, Portainer and Watchtower

License

Notifications You must be signed in to change notification settings

ct-Open-Source/telerec-t-base

Repository files navigation

telerec-t-base

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.git

Install ansible

First install sshpass for the first login without public key. On Ubuntu or Debian use:

sudo apt install sshpass

Then install Ansible. We recommend using pipenv with the Pipfile in the repository:

cd telerec-t-base
pipenv install

The 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.

Install ansible modules

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.docker

Run the playbook

For 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-pass
pipenv run ansible-playbook server-setup.yml -i hosts

About

Basic Ansible Setup for a server with Traefik, Portainer and Watchtower

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published