Skip to content

Commit 5ce5ba6

Browse files
osfricklerpriteau
authored andcommitted
Fix prometheus fix
Part of [0] was incorrect, revert that. [0] I1dc5baa8d0da2a454eaa4459e87fc22a275698df Signed-off-by: Dr. Jens Harbott <[email protected]> Change-Id: I67479cf1f59bb70ce352fe93d38b16347c6a678e (cherry picked from commit fb3aa1b)
1 parent f9311c6 commit 5ce5ba6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ansible/roles/prometheus/tasks/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
dest: "{{ node_config_directory }}/prometheus-server/{{ item.path | basename }}"
4949
mode: "0660"
5050
when:
51-
- inventory_hostname in groups.get(item.value.group, [])
51+
- inventory_hostname in groups[service.group]
5252
- service.enabled | bool and enable_prometheus_alertmanager | bool
5353
- prometheus_alert_rules is defined and prometheus_alert_rules.files | length > 0
5454
with_items: "{{ prometheus_alert_rules.files }}"

0 commit comments

Comments
 (0)