From 833f6e8d4d5abe6624a70a8331abc4e9b39bf3a2 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Fri, 28 Jul 2023 08:39:58 +0200 Subject: [PATCH] bug(ansible/host.yml) install Vector before trying to starts service close #7 --- ansible/host.yml | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/ansible/host.yml b/ansible/host.yml index 9297029..8cb3a6a 100644 --- a/ansible/host.yml +++ b/ansible/host.yml @@ -16,6 +16,28 @@ update_cache: yes state: latest +- 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 + - name: "Host is modified" include_tasks: host_modified.yml when: build_host.host_changed @@ -71,25 +93,3 @@ 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