victoriametrics/tasks/main.yaml
2021-12-22 15:03:21 +03:00

34 lines
1.2 KiB
YAML

- name: Install yum corp plugin
dnf:
name: yum-plugin-copr
state: present
- name: Check corp repo antonpatsev/VictoriaMetrics is enabled
shell: dnf -y copr list --enabled
register: corp_repo
changed_when: false
- name: Enable corp repo antonpatsev/VictoriaMetrics
shell: dnf -y copr enable antonpatsev/VictoriaMetrics
when: '"antonpatsev/VictoriaMetrics" not in corp_repo.stdout'
- name: Include vmstorage {{ victoriametrics_vmstorage_version }} deploy
include: vmstorage.yaml
when: inventory_hostname in groups[victoriametrics_vmstorage_group]
- name: Include vminsert {{ victoriametrics_vminsert_version }} deploy
include: vminsert.yaml
when: inventory_hostname in groups[victoriametrics_vminsert_group]
- name: Include vmselect {{ victoriametrics_vmselect_version }} deploy
include: vmselect.yaml
when: inventory_hostname in groups[victoriametrics_vmselect_group]
- name: Include vmauth {{ victoriametrics_vmauth_version }} deploy
include: vmauth.yaml
when: inventory_hostname in groups[victoriametrics_vmauth_group]
- name: Include vmagent {{ victoriametrics_vmagent_version }} deploy
include: vmagent.yaml
when: inventory_hostname in groups[victoriametrics_vmagent_group]