1
0
Fork 0
mirror of https://github.com/roles-ansible/role_akku_warning.git synced 2024-08-16 10:09:50 +02:00
ansible role to install a warning if your akku is low
Find a file
2020-05-16 19:09:29 +02:00
.github Add more action checks for more operating systems 2020-05-16 19:09:29 +02:00
defaults Update docs and default values 2020-02-21 08:43:28 +01:00
files Use new sound 2019-08-31 15:05:07 +02:00
meta improve role name 2019-06-24 13:40:31 +02:00
tasks cronie => cron 2020-02-21 09:34:58 +01:00
templates update script: no popups during recharge 2020-02-20 22:56:32 +01:00
vars update version string 2020-02-20 22:57:09 +01:00
.travis.yml add travis check 2020-02-20 22:57:21 +01:00
LICENSE Update LICENCE Information 2019-06-07 11:37:31 +02:00
README.md Update docs and default values 2020-02-21 08:43:28 +01:00

ansible-galaxy: do1jlr.akku_warning Ansible Lint check Build Status Ansible check debian:stable Ansible check debian:sid Ansible check debian:buster Ansible check debian:jessie Ansible check debian:stretch Ansible check ubuntu:latest MIT License

ansible role: akku warning

This ansible warning will install an bash Script, that will be executet every 3 minutes.

If your batterie is under 25 percent, it will start warning you.

This role is tested with the i3 - improved tiling wm, but probably will work on all window magers!

Variables:

# Your username you mostly use on your device
akku_user: "{{ ansible_user_id }}"

# should we install and enable cronie?
install_and_enable_cronie: true

# play a sound at critical battery level
multimedia_akku_warning: true

# set this to false to disable package installation?
manage_packages_akku_warning: true

# version check for this playbook
submodules_versioncheck: true

For a complete view of all variables pleas have a look into the default folder.

Installation and Usage

install with galaxy:

ansible-galaxy install do1jlr.akku_warning

example playbook with galaxy

---
- hosts:
  roles:
    - do1jlr.akku_warning

installation via git

# download this role into your roles directory
git clone https://github.com/chaos-bodensee/role_akku_warning.git

example playbook

---
- name: install akku_warning
  hosts: localhost
  tags:
   - akku_warning
  roles:
    - role_akku_warning

Missing something?

Please feel free to open a github Issue or Pull-Request. Thanks <3

Testing

This role is tested via github actions.