mirror of
https://github.com/Dannecron/netology-devops-ansible-vector.git
synced 2025-12-25 22:42:34 +03:00
initial: role for vector
This commit is contained in:
1
templates/vector.config.j2
Normal file
1
templates/vector.config.j2
Normal file
@@ -0,0 +1 @@
|
||||
{{ vector_config | to_nice_yaml }}
|
||||
7
templates/vector.service.j2
Normal file
7
templates/vector.service.j2
Normal file
@@ -0,0 +1,7 @@
|
||||
[Unit]
|
||||
Description=Vector service
|
||||
[Service]
|
||||
User={{ ansible_user_id }}
|
||||
Group={{ ansible_user_gid }}
|
||||
ExecStart=/usr/local/bin/vector --config-yaml {{ vector_config_dir }}/vector.yaml --watch-config
|
||||
Restart=always
|
||||
Reference in New Issue
Block a user