1
0
Fork 0

Merge pull request #4 from roles-ansible/verify

Make sure targets are defines
This commit is contained in:
L3D 2022-11-23 17:06:14 +01:00 committed by GitHub
commit 12b87c29e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -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:

View file

@ -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'