--- - name: Deploy Mempool Block Explorer with Docker hosts: mempool become: yes vars: # Preserves the three push URLs these checks have been reporting to all # along, so the move to a role changes no behaviour. The role knows nothing # about Uptime Kuma — these are just "URLs that accept a ping", and whatever # replaces it sets the same values. mempool_healthchecks: - {name: mariadb, label: MariaDB, push_url: "{{ healthcheck_push_urls.mempool.mariadb | default('') }}"} - {name: backend, label: Backend, push_url: "{{ healthcheck_push_urls.mempool.backend | default('') }}"} - {name: frontend, label: Frontend, push_url: "{{ healthcheck_push_urls.mempool.frontend | default('') }}"} roles: - mempool - name: Configure Caddy reverse proxy for Mempool on the edge host hosts: edge become: yes vars: mempool_domain: "{{ subdomains.mempool }}.{{ root_domain }}" tasks: - name: Publish Mempool through Caddy (via Tailscale) ansible.builtin.include_role: name: caddy_site vars: caddy_site_name: mempool caddy_site_domain: "{{ mempool_domain }}" caddy_site_upstream: "{{ hostvars['mempool_box_local'].ansible_host }}:{{ hostvars['mempool_box_local'].mempool_frontend_port }}" caddy_site_resolvers: "100.100.100.100"