Adding multiples ansible roles, playbooks and inventory
This commit is contained in:
13
roles/prometheus-agent/tasks/main.yml
Normal file
13
roles/prometheus-agent/tasks/main.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
- name: Install Prometheus Package
|
||||
apt:
|
||||
name: prometheus-node-exporter
|
||||
state: present
|
||||
update_cache: yes
|
||||
|
||||
- name: Activate & Start Node Exporter daemon service
|
||||
ansible.builtin.systemd:
|
||||
name: prometheus-node-exporter
|
||||
enabled: yes
|
||||
state: started
|
||||
...
|
||||
Reference in New Issue
Block a user