This playbook allows easy setup of Traefik using Ansible. The playbook will install Traefik version 2.8.3.
# Clone the repository
git clone https://github.com/vold-lu/ansible-traefik.git
cd ansible-traefik
# Create the inventory file (replace 127.0.0.1 by your host IP address)
echo '127.0.0.1' >> .inventory
# Run the playbook against the inventory
ansible-playbook -i .inventory --ask-become-pass traefik.yaml