mirror of
https://gitea.0xace.cc/ansible-galaxy/victoriametrics.git
synced 2024-11-29 01:46:42 +00:00
28 lines
670 B
YAML
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
|
||
|
|
||
|
|