infrastructure/ansible/roles/prometheus/tasks/main.yml
Jake Howard ee96e6ab08
Some checks failed
/ ansible (push) Failing after 1m35s
/ terraform (push) Failing after 12m54s
Rename forrest role to prometheus
Makes organising much simpler
2024-04-21 19:47:02 +01:00

35 lines
652 B
YAML

- name: Include vault
include_vars: vault.yml
- name: Grafana
include_tasks: grafana.yml
- name: Prometheus
include_tasks: prometheus.yml
- name: Get routes
command:
argv:
- ip
- -6
- route
- show
- "{{ vps_hosts.private_ipv6_range }}"
register: routes
changed_when: false
become: true
- name: Add route to private services via ingress
command:
argv:
- ip
- -6
- route
- add
- "{{ vps_hosts.private_ipv6_range }}"
- via
- "{{ pve_hosts.ingress.ipv6 }}"
- dev
- eth0
become: true
when: vps_hosts.private_ipv6_marker not in routes.stdout