refactor: use naive assertion of proper listen address from _common role

Signed-off-by: gardar <gardar@users.noreply.github.com>
This commit is contained in:
gardar 2024-10-31 15:54:29 +00:00
parent 239a0b3cee
commit 3c92350df8

View file

@ -3,16 +3,8 @@
ansible.builtin.include_role:
name: prometheus.prometheus._common
tasks_from: preflight.yml
- name: Naive assertion of proper listen address
ansible.builtin.assert:
that:
- >-
[nvidia_gpu_exporter_web_listen_address] |
flatten |
reject('match', '.+:\\d+$') |
list |
length == 0
vars:
_common_web_listen_address: "{{ nvidia_gpu_exporter_web_listen_address }}"
- name: Discover latest version
ansible.builtin.set_fact: