No description
  • Jinja 58%
  • Shell 42%
Find a file
2025-10-11 01:04:49 +00:00
defaults initial commit 2025-10-11 01:04:49 +00:00
files initial commit 2025-10-11 01:04:49 +00:00
meta initial commit 2025-10-11 01:04:49 +00:00
tasks initial commit 2025-10-11 01:04:49 +00:00
templates initial commit 2025-10-11 01:04:49 +00:00
.gitignore initial commit 2025-10-11 01:04:49 +00:00
README.md initial commit 2025-10-11 01:04:49 +00:00

ansible-roles-grafana-image-renderer

This role will deploy grafana-image-renderer

External roles are expected to handle firewall and reverse proxy configuration

- name: Deploy grafana
  hosts: grafana
  become: true
  roles:
    - role: grafana
      grafana_url: grafana.somehost.somewhere
      grafana_rendering_callback_url: https://grafana.somehost.somewhere
    - role: grafana-image-renderer
    - role: caddy
      caddy_sites:
      - name: grafana
        url: "{{ grafana_url }}"
        srv: "{{ caddy_local_address }}:3000"
        log: true
    - role: firewalld
      firewalld_add:
        - name: public
          interfaces:
            - eth2
          forwards:
            - port: 80
              to: 8080
            - port: 443
              to: 8443
            - port: 443
              to: 8443
              proto: udp

Deployment and Removal

Manage a running deployment via systemd

systemctl --user status container-caddy.service
systemctl --user status container-grafana.service
systemctl --user status container-grafana-image-renderer.service

Deploy

ansible-playbook -i hosts site.yml --tags=firewalld,caddy,grafana,grafana-image-renderer --limit=somehost

Remove

ansible-playbook -i hosts site.yml --tags=firewalld,caddy,grafana,grafana-image-renderer --extra-vars "container_state=absent firewall_action=remove" --limit=somehost