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

28 lines
670 B
YAML

- name: Install vmauth {{ victoriametrics_vmauth_version }}
dnf:
name: "vmauth-{{ victoriametrics_vmauth_version }}"
state: present
register: vmauth_setup
notify: Restart vmauth
- name: Template vmauth config
template:
src: etc/victoriametrics/vmauth/vmauth.conf.j2
dest: /etc/victoriametrics/vmauth/vmauth.conf
notify: Restart vmauth
- name: Template vmauth users config
template:
src: etc/victoriametrics/vmauth/config.yml.j2
dest: "{{ victoriametrics_vmauth_config_file }}"
notify: Restart vmauth
- name: Enable and start vmauth service
systemd:
name: vmauth
state: started
enabled: yes
daemon_reload: yes