node_exporter: Add physical host disk monitoring
This commit is contained in:
parent
e39fc8c992
commit
31c8b7aa6a
3 changed files with 277 additions and 0 deletions
|
@ -75,6 +75,20 @@
|
|||
notify: Restart node_exporter
|
||||
when: ansible_os_family == "RedHat"
|
||||
|
||||
- name: Install disk and raid monitoring scripts
|
||||
ansible.builtin.copy:
|
||||
dest: "/usr/local/libexec/node-exporter/{{ item }}"
|
||||
src: "{{ item }}"
|
||||
mode: "0755"
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
with_items:
|
||||
- md_info.sh
|
||||
- smartmon.sh
|
||||
when:
|
||||
- ansible_virtualization_role == "host"
|
||||
- ansible_os_family == "RedHat"
|
||||
|
||||
- name: Enable service
|
||||
ansible.builtin.service:
|
||||
name: "{{ node_exporter_service }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue