This commit is contained in:
@ -7,4 +7,5 @@
|
||||
- include_tasks: user-ops.yaml
|
||||
- include_tasks: ssh-security-settings.yaml
|
||||
- include_tasks: timesync.yaml
|
||||
- include_tasks: node-exporter.yaml
|
||||
...
|
||||
|
15
roles/common/tasks/node-exporter.yaml
Normal file
15
roles/common/tasks/node-exporter.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
---
|
||||
- name: "Install node exporter"
|
||||
apt:
|
||||
update_cache: yes
|
||||
state: present
|
||||
name:
|
||||
- prometheus-node-exporter
|
||||
|
||||
- name: Allow node-exporter via ufw
|
||||
community.general.ufw:
|
||||
rule: allow
|
||||
port: 9100
|
||||
proto: tcp
|
||||
src: 192.168.69.0/24
|
||||
...
|
Reference in New Issue
Block a user