victoriametrics/tasks/vmauth.yaml

28 lines
670 B
YAML
Raw Normal View History

2021-12-22 12:03:21 +00:00
- 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