1
0
Fork 0

Merge pull request #7 from roles-ansible/DO1JLR-patch-1

Update README.md
This commit is contained in:
L3D 2022-11-23 18:25:23 +01:00 committed by GitHub
commit b6a3874c2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,8 +1,8 @@
[![License](https://raw.githubusercontent.com/roles-ansible/ansible_role_prometheus_ping_exporter/main/.github/license.svg)](https://github.com/roles-ansible/ansible_role_prometheus_ping_exporter/blob/main/LICENSE) [![License](https://raw.githubusercontent.com/roles-ansible/ansible_role_prometheus_ping_exporter/main/.github/license.svg)](https://github.com/roles-ansible/ansible_role_prometheus_ping_exporter/blob/main/LICENSE)
[![Galaxy](https://github.com/roles-ansible/ansible_role_prometheus_ping_exporter/raw/main/.github/galaxy.svg)](https://galaxy.github.com/do1jlr/prometheus_ping_exporter) [![Galaxy](https://github.com/roles-ansible/ansible_role_prometheus_ping_exporter/raw/main/.github/galaxy.svg)](https://galaxy.ansible.com/do1jlr/prometheus_ping_exporter)
# Ansible role prometheus ping exporter # Ansible role prometheus ping exporter
Ansible role to install the prometheus node exporter from [github.com/czerwonk/ping_exporte](https://github.com/czerwonk/ping_exporter.git) Ansible role to install the prometheus node exporter from [github.com/czerwonk/ping_exporter](https://github.com/czerwonk/ping_exporter.git)
## Some variables ## Some variables
| value | default | | value | default |
@ -12,9 +12,23 @@ Ansible role to install the prometheus node exporter from [github.com/czerwonk/p
| ping_exporter__user_home | ``/var/lib/ping_exporter`` | | ping_exporter__user_home | ``/var/lib/ping_exporter`` |
| ping_exporter__shell | ``/bin/false`` | | ping_exporter__shell | ``/bin/false`` |
| ping_exporter__version | ``latest`` | | ping_exporter__version | ``latest`` |
| ping_exporter__targets | `` []`` | | **ping_exporter__targets** | `` []`` |
| ping_exporter__nameserver | ``9.9.9.9`` | | ping_exporter__nameserver | ``9.9.9.9`` |
| ping_exporter__web_listen_address | ``:9427`` | | ping_exporter__web_listen_address | ``:9427`` |
| submodules_versioncheck | ``false`` | | submodules_versioncheck | ``false`` |
Please define all your targets in the ``ping_exporter__targets`` array.
## Example Playbook
```yml
---
- name: Install ping exporter at example.com
hosts: example.com
roles:
- {role: do1jlr.prometheus_ping_exporter, tags: etebase}
vars:
ping_exporter__targets:
- host1.example.com
- host2.example.com
- ccc.de
```