mirror of
https://github.com/roles-ansible/ansible_role_prometheus_ping_exporter.git
synced 2024-08-16 10:19:51 +02:00
Merge pull request #4 from roles-ansible/verify
Make sure targets are defines
This commit is contained in:
commit
12b87c29e6
2 changed files with 6 additions and 1 deletions
|
@ -1,4 +1,9 @@
|
|||
---
|
||||
- name: Make sure targets exist
|
||||
ansible.builtin.fail:
|
||||
msg: "Pleas define a target with the ping_exporter__targets array"
|
||||
when: ping_exporter__targets | length == 0
|
||||
|
||||
- name: Create ping exporter config
|
||||
become: true
|
||||
ansible.builtin.template:
|
||||
|
|
|
@ -3,5 +3,5 @@ ping_exporter__repo: 'https://github.com/czerwonk/ping_exporter.git'
|
|||
ping_exporter__repo_api: 'https://api.github.com/repos/czerwonk/ping_exporter/releases/latest'
|
||||
|
||||
# versionscheck
|
||||
playbook_version_number: 5 # should be a integer
|
||||
playbook_version_number: 6 # should be a integer
|
||||
playbook_version_path: 'do1jlr.prometheus_ping_exporter.version'
|
||||
|
|
Loading…
Reference in a new issue