This role installs Prometheus' Apache exporter on Apache hosts.
Setup Status Page of Apache
Available variables are listed below, along with default values (see defaults/main.yml
):
apache_exporter_version: '0.10.1'
The version of Apache exporter to install. Available releases can be found on the tags listing in the Apache exporter repository. Drop the v
off the tag.
If you change the version, the apache_exporter
binary will be replaced with the updated version, and the service will be restarted.
apache_exporter_arch: 'amd64'
apache_exporter_download_url: https://github.com/Lusitaniae/apache_exporter/releases/download/v{{ apache_exporter_version }}/apache_exporter-{{ apache_exporter_version }}-{{ apache_exporter_arch }}.tar.gz
The path where the apache_exporter
binary will be downloaded and installed from.
apache_exporter_options: ''
Any additional options to pass to apache_exporter
when it starts.
apache_exporter_state: started
apache_exporter_enabled: true
Controls for the apache_exporter
service.
None.
- hosts: all
roles:
- role: ansible-role-apache_exporter
MIT / BSD
This role was created in 2021 by Daniel Weeber. Heavily inspired and forked from Jeff Geerling, author of Ansible for DevOps.