warhorse.traefik_docker
Ansible Traefik (Docker)
Install Traefik (Docker)
This role is part of the Warhorse Automation Framework. You can use this role with Warhorse or by itself.
Docker Image
Role Variables
You can find all the variable options in ./defaults/main.yml
.
traefik_dir
: Directory for the Traefik containertraefik_docker_version
: Version of the Docker imagetraefik_ports
: Ports for the Traefik containertraefik_hostname
: Hostname for the Traefik containertraefik_container_name
: Name of the Traefik containertraefik_docker_network
: Docker network for the Traefik container
Dependencies
To install required dependencies, run:
ansible-galaxy install geerlingguy.docker geerlingguy.pip
Install
To install the Traefik Docker role, use:
ansible-galaxy install warhorse.traefik_docker
Example Playbook
Here is a simple example of how to use the role in your playbook:
- hosts: servers
roles:
- { role: warhorse.traefik_docker }
Example Variables
You can set the following variables in your playbook:
traefik_hostname: "traefik"
traefik_container_name: "traefik"
traefik_docker_version: "latest"
traefik_docker_labels: {}
traefik_docker_network: "traefik"
traefik_dir: '/opt/docker/traefik'
traefik_ports:
- '80:80'
- '443:443'
License
MIT/BSD
Author Information
By Ralph May
Installa
ansible-galaxy install warhorse.traefik_docker
Licenza
mit
Download
1.7k
Proprietario