add prometheus-node-exporter
All checks were successful
🏃♂️Run Ansible / install_ansible (push) Successful in 5m8s
All checks were successful
🏃♂️Run Ansible / install_ansible (push) Successful in 5m8s
This commit is contained in:
@@ -1,6 +1,17 @@
|
|||||||
- name: Gather facts from all hosts
|
- name: Gather facts from all hosts
|
||||||
hosts: dev
|
hosts: dev
|
||||||
gather_facts: true
|
gather_facts: true
|
||||||
|
become: true
|
||||||
|
tasks:
|
||||||
|
- name: Install node exporter on dev hosts
|
||||||
|
ansible.builtin.apt:
|
||||||
|
name: "{{ prometheus_package }}"
|
||||||
|
state: present
|
||||||
|
loop:
|
||||||
|
- prometheus-node-exporter-collectors
|
||||||
|
- prometheus-node-exporter
|
||||||
|
loop_control:
|
||||||
|
loop_var: prometheus_package
|
||||||
- hosts:
|
- hosts:
|
||||||
- prometheus_servers
|
- prometheus_servers
|
||||||
gather_facts: true
|
gather_facts: true
|
||||||
|
|||||||
Reference in New Issue
Block a user