mirror of
https://github.com/prometheus-community/ansible
synced 2024-11-22 03:43:09 +00:00
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:
parent
239a0b3cee
commit
3c92350df8
1 changed files with 2 additions and 10 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue