No description
- Jinja 100%
| defaults | ||
| meta | ||
| tasks | ||
| templates | ||
| .gitignore | ||
| README.md | ||
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