From f0d3ca8f4313a9dff60f2b64e8528206f5ac894a Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Thu, 22 Jun 2023 16:11:49 +0200 Subject: [PATCH] install vector in host --- ansible/host.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/ansible/host.yml b/ansible/host.yml index 98e6807..3981337 100644 --- a/ansible/host.yml +++ b/ansible/host.yml @@ -63,3 +63,25 @@ path: /var/lib/risotto/tls state: directory mode: "755" + +- name: "Add keyrings directory" + file: + path: /etc/apt/keyrings + state: directory + mode: "755" + +- name: "Add vector signed repositories" + ansible.builtin.get_url: + url: https://repositories.timber.io/public/vector/gpg.3543DB2D0A2BC4B8.key + dest: /etc/apt/keyrings/vector.asc + +- name: "Add vector repository" + ansible.builtin.apt_repository: + repo: "deb [signed-by=/etc/apt/keyrings/vector.asc] https://repositories.timber.io/public/vector/deb/debian {{ ansible_distribution_release }} main" + state: present + +- name: "Install vector" + ansible.builtin.apt: + name: vector + update_cache: yes + state: present