diff --git a/README.md b/README.md index 6a0fd0f..4746148 100644 --- a/README.md +++ b/README.md @@ -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) -[![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 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 | 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__shell | ``/bin/false`` | | ping_exporter__version | ``latest`` | -| ping_exporter__targets | `` []`` | +| **ping_exporter__targets** | `` []`` | | ping_exporter__nameserver | ``9.9.9.9`` | | ping_exporter__web_listen_address | ``:9427`` | | 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 +```