triplepoint.traefik
Intro
This role sets up and configures a Dockerized traefik reverse proxy application.
Requirements
While there are no specific roles required, the target machine should be able to run Docker. The geerlingguy.docker Ansible role is a good option for this.
Role Variables
For configuration details, check the comment in the default variables file.
Dependencies
None.
Example Playbook
- hosts: whatever
roles:
- triplepoint.traefik
Role Testing
This role is tested using molecule, with pipenv to manage dependencies and the Python testing setup.
Setting Up Your Execution Environment
pip install pipenv
After installing pipenv, create the execution virtual environment with:
pipenv install --dev
Running Tests
With your environment set up, you can run molecule using:
pipenv run molecule test
Regenerating the Lock File
You generally won't need to do this often, but if you change Python package requirements using commands like pipenv install {some_package} or by directly editing the Pipfile, or if your build dependencies are outdated, you may need to regenerate the Pipfile.lock.
pipenv update --dev
Make sure to check in the new Pipfile.lock after completing this process.
License
MIT
ansible-galaxy install triplepoint.traefik