Skip to content

Commit

Permalink
Add homepage support for portainer
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielgradinaru committed Oct 9, 2024
1 parent feae98d commit a4a2182
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions roles/portainer/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@
traefik.http.services.portainer.loadbalancer.server.port: "9443"
traefik.http.routers.portainer.middlewares: "portainer-ipallowlist@docker"
traefik.http.middlewares.portainer-ipallowlist.ipallowlist.sourcerange: "{{ portainer_ip_allowlist }}"
homepage.group: System Tools
homepage.name: Portainer
homepage.icon: portainer.png
homepage.href: "https://{{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }}:{{ portainer_port }}"
homepage.description: Container management
homepage.widget.type: portainer
homepage.widget.url: "https://{{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }}:{{ portainer_port }}"
when: portainer_enabled is true

- name: Stop Portainer
Expand Down

0 comments on commit a4a2182

Please sign in to comment.