diff --git a/playbooks/install_monitoring.yml.ansible b/playbooks/install_monitoring.yml.ansible index 642708a..275f97b 100644 --- a/playbooks/install_monitoring.yml.ansible +++ b/playbooks/install_monitoring.yml.ansible @@ -1,6 +1,17 @@ - name: Gather facts from all hosts 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 - hosts: - prometheus_servers gather_facts: true