An Ansible role to install, configure and update the Postgres Exporter.
- Supported version of Ansible: 2.12 and higher. Systems with Python versions below than 3.7 are not compatible with ansible-core 2.17 (see ansible/ansible#83357).
gnu-tar
on Mac as deployer host (brew install gnu-tar
).pywinrm
is a python library for connection Ansible to Windows hosts via WinRM.passlib
on a deployer host when using the basic authentication feature (python3 -m pip install passlib[bcrypt]
).cryptography
orpyOpenSSL
on a deployer host when using the TLS feature.- Supported platforms:
- Debian
- 10
- 11
- 12
- RHEL
- 7
- 8
- 9
- Ubuntu
- 18.04
- 20.04
- 22.04
- Windows
- all
- Debian
All variables that can be overridden are stored in the defaults/main.yml file. Please refer to the meta/argument_specs.yml file for a description of the available variables. Similarly, descriptions and defaults for preset variables can be found in the vars/main.yml file.
When using Ansible core, you will also need to install the following Ansible collections:
---
collections:
- name: community.general
- name: community.windows
Install and configure the Postgres Exporter
:
---
- name: 'Setup the Postgres Exporter'
hosts: all
roles:
- role: antmelekhin.postgres_exporter
MIT
Melekhin Anton.