Skip to content

Commit

Permalink
feat: sort blackbox targets
Browse files Browse the repository at this point in the history
  • Loading branch information
janikvonrotz committed Jan 28, 2025
1 parent 7a22761 commit 9f693f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/prometheus/tasks/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

- name: Generate blackbox target urls
ansible.builtin.set_fact:
targets: "{{ src_hostnames | zip(paths) | map('join', '') | map('regex_replace', '^(.*)$', 'https://\\1') }}"
targets: "{{ src_hostnames | zip(paths) | map('join', '') | map('regex_replace', '^(.*)$', 'https://\\1') | sort }}"

- name: List blackbox targets
ansible.builtin.debug:
Expand Down

0 comments on commit 9f693f9

Please sign in to comment.