modified: playbooks/deploy_victorialogs.yml.ansible
Some checks failed
🏃‍♂️Run Ansible / install_ansible (push) Failing after 4m46s

modified:   playbooks/deploy_victoriametrics.yml.ansible
modified:   requirements.yml
This commit is contained in:
master of disaster
2025-12-20 01:27:49 +01:00
parent 43d6697e71
commit b90ce7eea6
3 changed files with 35 additions and 36 deletions

View File

@@ -1,31 +1,11 @@
- hosts:
- valkey
gather_facts: true
become: true
roles:
- valkeys
- handlers
- name: Gather facts from all hosts
hosts: dev
gather_facts: true
become: true
roles:
- common
- hosts:
- victoriametrics_servers
gather_facts: true
become: true
roles:
- handlers
- minio
- victoriametrics
- hosts:
- grafana_servers
gather_facts: true
become: true
roles:
- grafana
- handlers
- hosts:
- grafana_servers
gather_facts: true
@@ -33,28 +13,16 @@
tasks:
- name: add datasources VictoriaMetrics
ansible.builtin.include_role:
name: grafana
name: handlers
tasks_from: add_datasources.yml.ansible
vars:
grafana_datasources:
- name: "VictoriaMetrics"
type: "prometheus"
url: "http://{{ victoriametrics_eth_vip }}:8428"
url: "http://{{ hostvars[groups['victoriametrics_servers'][0]]['victoriametrics_eth_vip'] }}:8428"
access: "proxy"
is_default: true
version: 1
editable: false
- name: add datasources VictoriaLogs
ansible.builtin.include_role:
name: grafana
tasks_from: add_datasources.yml.ansible
vars:
grafana_datasources:
- name: "VictoriaLogs"
type: "loki"
url: "http://{{ victorialogs_ethernet_vip }}:9428"
access: "proxy"
is_default: false
version: 1
editable: false