diff options
| author | Ahmed Abdelhalim <[email protected]> | 2025-09-18 16:42:41 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2025-09-18 16:42:41 +0200 |
| commit | 9ce66cb8a69a874d9219e4df48dfa28e92b587b0 (patch) | |
| tree | 5def586496570d33a45c1491ec26f13fc812ed41 /roles/prometheus/tasks | |
| parent | 7e51b1642f6c848e7fc50dab609bf28c03e54e04 (diff) | |
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)
Diffstat (limited to 'roles/prometheus/tasks')
| -rw-r--r-- | roles/prometheus/tasks/main.yml | 2 |
1 files changed, 1 insertions, 1 deletions
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: |
