mirror of
https://gitea.0xace.cc/ansible-galaxy/victoriametrics.git
synced 2024-11-25 08:06:38 +00:00
20 lines
520 B
YAML
20 lines
520 B
YAML
|
- name: Install vmselect {{ victoriametrics_vmselect_version }}
|
||
|
dnf:
|
||
|
name: "vmselect-{{ victoriametrics_vmselect_version }}"
|
||
|
state: present
|
||
|
register: vmselect_setup
|
||
|
notify: Restart vmselect
|
||
|
|
||
|
- name: Template vmselect config
|
||
|
template:
|
||
|
src: etc/victoriametrics/vmcluster/vmselect.conf.j2
|
||
|
dest: /etc/victoriametrics/vmcluster/vmselect.conf
|
||
|
notify: Restart vmselect
|
||
|
|
||
|
- name: Enable and start vmselect service
|
||
|
systemd:
|
||
|
name: vmselect
|
||
|
state: started
|
||
|
enabled: yes
|
||
|
daemon_reload: yes
|