No description
Find a file
2025-10-06 22:24:17 +00:00
defaults update common format 2025-10-06 22:24:17 +00:00
meta update galaxy description 2024-12-18 23:49:37 +00:00
tasks update common format 2025-10-06 22:24:17 +00:00
templates initial grafana stand alone role 2024-10-12 07:31:19 +00:00
.gitignore initial grafana stand alone role 2024-10-12 07:31:19 +00:00
README.md update common format 2025-10-06 22:24:17 +00:00

ansible-roles-grafana

This role will deploy grafana

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
    - 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 --limit=somehost

Remove

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