❕ Before using this role, please know that all my Ansible roles are fully written and accustomed to my IT infrastructure. So, even if they are as generic as possible they will not necessarily fill your needs, I advice you to carrefully analyse what they do and evaluate their capability to be installed securely on your servers.
This roles configure the apcups daemon to monitor an UPS of APC brand.
Require Ansible >= 2.4
If you use the zabbix monitoring profile you will need the role ansible-zabbix-agent
This role is available for Debian
At this day the role can be used to :
- install apcupsd packages
- perform a minimal configuration (advanced one is planned)
- monitoring items for
- Zabbix
- local facts
All variables which can be overridden are stored in defaults/main.yml file as well as in table below. To see default values please refer to this file.
Name | Types/Values | Description |
---|---|---|
apcupsd__facts |
Boolean | Install the local fact script |
apcupsd__monitoring |
String | The name of the monitoring "profile" to use. Available 'zabbix' |
apcupsd__service_enabled |
Boolean | Enable or not the service |
apcupsd__net_server |
Boolean | Boolean to enable or not the nis server, it allow network client to query the UPS status |
apcupsd__net_server_address |
String | The network address on which the nis server will listen to |
apcupsd__net_server_port |
String | The network port on which the nis server will listen to |
By default the local fact are installed and expose the following variables :
ansible_local.apcupsd.version_full
ansible_local.apcupsd.version_major
Use it in a playbook as follows:
- hosts: all
roles:
- turgon37.apcupsd
apcupsd__net_server_address: 127.0.0.1