chore(vector): filter journald noise, add core-git, and remove vector from VPS playbooks
ansible-deploy / plan (push) Successful in 2s
ansible-lint / lint (push) Successful in 3s
ansible-deploy / deploy (core-mon, ) (push) Successful in 8s
ansible-deploy / deploy (core-net, ) (push) Successful in 9s
ansible-deploy / deploy (core-secrets, ) (push) Successful in 8s
ansible-deploy / deploy (ger-nod-02, ) (push) Successful in 1m13s
ansible-deploy / deploy (rus-central, ) (push) Successful in 1m2s
ansible-deploy / plan (push) Successful in 2s
ansible-lint / lint (push) Successful in 3s
ansible-deploy / deploy (core-mon, ) (push) Successful in 8s
ansible-deploy / deploy (core-net, ) (push) Successful in 9s
ansible-deploy / deploy (core-secrets, ) (push) Successful in 8s
ansible-deploy / deploy (ger-nod-02, ) (push) Successful in 1m13s
ansible-deploy / deploy (rus-central, ) (push) Successful in 1m2s
This commit is contained in:
1 parent
a5f3400c0c
commit
71f1a009bf
5 files changed
+30
-25
No files matched your search
@@ -15,25 +15,23 @@
|
||||
state: absent
|
||||
when: vector_legacy_compose.stat.exists
|
||||
|
||||
- name: Отключить и удалить конфиг Vector, если сбор логов выключен
|
||||
- name: Полностью удалить Vector, если сбор логов выключен
|
||||
when: not (vector_enabled | bool)
|
||||
block:
|
||||
- name: Проверить наличие systemd-сервиса Vector
|
||||
ansible.builtin.stat:
|
||||
path: /lib/systemd/system/vector.service
|
||||
register: vector_unit
|
||||
|
||||
- name: Остановить и отключить Vector
|
||||
ansible.builtin.systemd:
|
||||
- name: Удалить пакет Vector (purge)
|
||||
ansible.builtin.apt:
|
||||
name: vector
|
||||
state: stopped
|
||||
enabled: false
|
||||
when: vector_unit.stat.exists
|
||||
|
||||
- name: Удалить конфигурацию Vector
|
||||
ansible.builtin.file:
|
||||
path: "{{ vector_config_path }}"
|
||||
state: absent
|
||||
purge: true
|
||||
|
||||
- name: Удалить каталоги и репозиторий Vector
|
||||
ansible.builtin.file:
|
||||
path: "{{ item }}"
|
||||
state: absent
|
||||
loop:
|
||||
- /etc/vector
|
||||
- "{{ vector_data_dir }}"
|
||||
- /etc/apt/sources.list.d/vector.list
|
||||
|
||||
- name: Установить и запустить нативный Vector
|
||||
when: vector_enabled | bool
|
||||
|
||||
Reference in new issue
Block a user