Commit f9567e7e authored by Imran Hussain's avatar Imran Hussain

Add a role to setup ups monitoring & power control.

There are no configurable variables in this role (yet)

Hosts will shutdown when ups reaches 15% remaining capacity or 7 minutes remaining runtime.
parent 25a2a4a2
- name: restart apcupsd
service:
name: apcupsd
state: restarted
\ No newline at end of file
- name: install apcupsd
apt:
pkg: {{ item }}
state: installed
with_items:
- apcupsd
- name: configure apcupsd
template:
src: apcupsd.conf.j2
dest: /etc/apcupsd/apcupsd.conf
notify: restart apcupsd
- name: enable apcupsd
template:
src: apcupsd.j2
dest: /etc/default/apcupsd
notify: restart acpupsd
\ No newline at end of file
This diff is collapsed.
# Defaults for apcupsd initscript
# Apcupsd-devel internal configuration
APCACCESS=/sbin/apcaccess
ISCONFIGURED=yes
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment