use common role for exporters
Some checks failed
🏃♂️Run Ansible / install_ansible (push) Failing after 4m11s
Some checks failed
🏃♂️Run Ansible / install_ansible (push) Failing after 4m11s
This commit is contained in:
@@ -2,16 +2,8 @@
|
||||
hosts: dev
|
||||
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
|
||||
roles:
|
||||
- common
|
||||
- hosts:
|
||||
- prometheus_servers
|
||||
gather_facts: true
|
||||
|
||||
Reference in New Issue
Block a user