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
|
hosts: dev
|
||||||
gather_facts: true
|
gather_facts: true
|
||||||
become: true
|
become: true
|
||||||
tasks:
|
roles:
|
||||||
- name: Install node exporter on dev hosts
|
- common
|
||||||
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