forked from stove/risotto
bug(ansible/host.yml) install Vector before trying to starts service
close #7
This commit is contained in:
parent
75bb6b0765
commit
833f6e8d4d
1 changed files with 22 additions and 22 deletions
|
@ -16,6 +16,28 @@
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
state: latest
|
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"
|
- name: "Host is modified"
|
||||||
include_tasks: host_modified.yml
|
include_tasks: host_modified.yml
|
||||||
when: build_host.host_changed
|
when: build_host.host_changed
|
||||||
|
@ -71,25 +93,3 @@
|
||||||
path: /var/lib/risotto/tls
|
path: /var/lib/risotto/tls
|
||||||
state: directory
|
state: directory
|
||||||
mode: "755"
|
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
|
|
||||||
|
|
Loading…
Reference in a new issue