Skip to content

roles-ansible/ansible_role_prometheus_ping_exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Galaxy BSD-3 Clause Maintainance

Ansible role prometheus ping exporter

Ansible role to install the prometheus node exporter from github.com/czerwonk/ping_exporter

Some variables

value default
ping_exporter__targets []
ping_exporter__user ping_exporter
ping_exporter__group ping_exporter
ping_exporter__user_home /var/lib/ping_exporter
ping_exporter__shell /bin/false
ping_exporter__version latest
ping_exporter__nameserver 9.9.9.9
ping_exporter__web_listen_address :9427
ping_exporter__filename see defaults/main.yml
ping_exporter__dns see defaults/main.yml
ping_exporter__ping see defaults/main.yml
ping_exporter__options see defaults/main.yml
submodules_versioncheck false

Please define all your targets in the ping_exporter__targets array.

Example Playbook

---
- name: Install ping exporter at example.com
  hosts: example.com
  roles:
    - {role: l3d.prometheus_ping_exporter, tags: etebase}
  vars:
    ping_exporter__targets:
      - host1.example.com
      - host2.example.com
      - ccc.de