- hosts: - victorialogs_servers gather_facts: true become: true roles: - victorialogs - handlers - hosts: - grafana_servers gather_facts: true become: true roles: - handlers - grafana - hosts: - grafana_servers gather_facts: true become: true tasks: - name: add datasources VictoriaLogs ansible.builtin.include_role: name: handlers tasks_from: add_datasources.yml.ansible vars: grafana_datasources: name: "VictoriaLogs" type: "victoriametrics-logs-datasource" url: "http://{{ hostvars[groups['victorialogs_servers'][0]]['victorialogs_ethernet_vip'] }}:9428" access: "proxy" is_default: false version: 1 editable: false