add vector role

This commit is contained in:
2025-11-08 12:26:28 +00:00
parent ca51d33568
commit d4ce6e21f0
7 changed files with 90 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
---
- name: Install Vector via official script
ansible.builtin.shell: bash -c "$(curl -L https://setup.vector.dev)"
args:
creates: /usr/bin/vector
- name: Install Vector
ansible.builtin.apt:
name: vector
state: present
- name: Deploy config
become: true
ansible.builtin.template:
src: templates/vector.yaml.j2
dest: "{{ vector_setup.config_path }}"
owner: root
notify:
- Restart Service
- name: Enable and start Vector service
ansible.builtin.systemd:
name: vector
enabled: yes
state: started