diff --git a/roles/nvidia_gpu_exporter/tasks/preflight.yml b/roles/nvidia_gpu_exporter/tasks/preflight.yml index bb83b54a..53f6193a 100644 --- a/roles/nvidia_gpu_exporter/tasks/preflight.yml +++ b/roles/nvidia_gpu_exporter/tasks/preflight.yml @@ -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: