feat(monitoring): integrate alertmanager-ntfy and fix host dropdown in node exporter dashboard
This commit is contained in:
1 parent
bf4144a767
commit
317b5d6207
8 files changed
+92
-18
No files matched your search
@@ -6,6 +6,19 @@
|
||||
- name: Собрать факты
|
||||
ansible.builtin.setup:
|
||||
|
||||
- name: Установить hostname хоста
|
||||
ansible.builtin.hostname:
|
||||
name: "{{ inventory_hostname }}"
|
||||
failed_when: false
|
||||
|
||||
- name: Обеспечить запись inventory_hostname в /etc/hosts
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/hosts
|
||||
line: "127.0.1.1 {{ inventory_hostname }}"
|
||||
regexp: '^127\.0\.1\.1\s+'
|
||||
state: present
|
||||
failed_when: false
|
||||
|
||||
- name: Создать каталог .ssh
|
||||
ansible.builtin.file:
|
||||
path: /root/.ssh
|
||||
|
||||
Reference in new issue
Block a user