mirror of
https://github.com/roles-ansible/ansible_role_prometheus_ping_exporter.git
synced 2024-08-16 10:19:51 +02:00
Edit template
This commit is contained in:
parent
c364e85280
commit
81e94d7c1a
6 changed files with 28 additions and 17 deletions
2
LICENSE
2
LICENSE
|
@ -1,6 +1,6 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2022 L3D <l3d@c3woc.de>
|
||||
Copyright (c) 2022-2023 L3D <l3d@c3woc.de>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
|
|
@ -14,6 +14,18 @@ ping_exporter__version: 'latest'
|
|||
ping_exporter__targets: []
|
||||
ping_exporter__nameserver: '9.9.9.9'
|
||||
ping_exporter__web_listen_address: ":9427"
|
||||
ping_exporter__dns:
|
||||
refresh: "2m15s"
|
||||
nameserver: "{{ ping_exporter__nameserver }}"
|
||||
|
||||
ping_exporter__ping:
|
||||
interval: "2s"
|
||||
timeout: "3s"
|
||||
history-size: 42
|
||||
size: 120
|
||||
|
||||
ping_exporter__options:
|
||||
disableIPv6: false
|
||||
|
||||
# should we do a version check? (recomended)
|
||||
submodules_versioncheck: false
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
galaxy_info:
|
||||
role_name: prometheus_ping_exporter
|
||||
author: do1jlr
|
||||
author: l3d
|
||||
description: Ansible role to install a prometheus ping exporter
|
||||
license: "MIT"
|
||||
min_ansible_version: "2.13"
|
||||
|
|
|
@ -16,3 +16,10 @@
|
|||
daemon_reload: true
|
||||
notify:
|
||||
- "Systemctl restart ping_exporter.service"
|
||||
|
||||
- name: Enable ping_exporter.service Service and make sure it started
|
||||
become: true
|
||||
ansible.builtin.systemd:
|
||||
enabled: true
|
||||
name: 'ping_exporter.service'
|
||||
state: 'started'
|
||||
|
|
|
@ -1,18 +1,10 @@
|
|||
---
|
||||
#
|
||||
# {{ ansible_managed }}
|
||||
#
|
||||
targets: {{ ping_exporter__targets }}
|
||||
{{ ansible_managed | comment }}
|
||||
|
||||
dns:
|
||||
refresh: 2m15s
|
||||
nameserver: {{ ping_exporter__nameserver }}
|
||||
targets: {{ ping_exporter__targets | ansible.builtin.to_yaml(encoding='utf-8') }}
|
||||
|
||||
ping:
|
||||
interval: 2s
|
||||
timeout: 3s
|
||||
history-size: 42
|
||||
payload-size: 120
|
||||
dns: {{ ping_exporter__dns | ansible.builtin.to_yaml(encoding='utf-8') }}
|
||||
|
||||
options:
|
||||
disableIPv6: false
|
||||
ping: {{ ping_exporter__ping | ansible.builtin.to_yaml(encoding='utf-8') }}
|
||||
|
||||
options: {{ ping_exporter__options | ansible.builtin.to_yaml(encoding='utf-8') }}
|
||||
|
|
|
@ -11,5 +11,5 @@ ping_arch_map:
|
|||
ping_arch: "{{ ping_arch_map[ansible_architecture] | default(ansible_architecture) }}"
|
||||
|
||||
# versionscheck
|
||||
playbook_version_number: 6 # should be a integer
|
||||
playbook_version_number: 7 # should be a integer
|
||||
playbook_version_path: 'do1jlr.prometheus_ping_exporter.version'
|
||||
|
|
Loading…
Add table
Reference in a new issue