From 9ce66cb8a69a874d9219e4df48dfa28e92b587b0 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Thu, 18 Sep 2025 16:42:41 +0200 Subject: Allow configuring multiple targets for prometheus The default are localhost, but it can be overridden to allow scrapping localhost and or remote hosts (for both prometheus job and node exporter jobs) --- roles/prometheus/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roles/prometheus/tasks') diff --git a/roles/prometheus/tasks/main.yml b/roles/prometheus/tasks/main.yml index e3029487..c4606ace 100644 --- a/roles/prometheus/tasks/main.yml +++ b/roles/prometheus/tasks/main.yml @@ -67,7 +67,7 @@ - name: "Start and enable prometheus services" become: true ansible.builtin.systemd_service: - name: "prometheus" + name: "{{ item }}" state: "started" enabled: true with_items: -- cgit v1.2.3