Ansible role to setup sleepwatcher on macOS. http://www.bernhard-baehr.de/ "a command line tool (daemon) for OS X that monitors sleep, wakeup and idleness of a Mac. It can be used to execute a Unix command when the Mac or the display of the Mac goes to sleep mode or wakes up, after a given time without user interaction or when the user resumes activity after a break or when the power supply of a Mac notebook is attached or detached."
It was tested on the following versions:
- 1.9
- 2.0
- 2.2
- 2.10
MacOS 10.11, 10.12, 10.15
Just include this role in your list. For example
- host: all
roles:
- juju4.macos-sleepwatcher
Nothing specific for now.
This role has a travis basic test (for github) and Github action.
BSD 2-clause