|
|
há 3 anos atrás | |
|---|---|---|
| .. | ||
| defaults | há 3 anos atrás | |
| files | há 3 anos atrás | |
| handlers | há 3 anos atrás | |
| tasks | há 3 anos atrás | |
| templates | há 3 anos atrás | |
| vars | há 3 anos atrás | |
| README.md | há 3 anos atrás | |
Compiles and installs heyu x10 automation software on a server.
This role assumes there is an x10 control hardware on /dev/ttyUSB0 which gets linked to /dev/firecracker (hardcoded in heyu). Heyu passes all commands to this device.
heyu_user: user to run heyu service as
heyu_version: semver of heyu. Ex: "2.10.1"
heyu_aliases:- device: Cameras
type: StdAM
code: A1
type can be one of the following:
StdAM # Appliance ModuleStdLM # Lamp Module"" # empty string, used for multiple-unit aliasescode examples:
A1A1-5heyu_cronjobs:- name: turn on cameras
job: /usr/local/bin/heyu fon Cameras
hour: 7
minute: 30
All cronjob settings are available:
minute: minute (0-59)hour: hour (0-23)dom: day of month (1-31)month: month (1-12)dow: day of week (0-7) where Sunday=(0 or 7)From within the infra directory:
ansible-playbook plays/heyu.yml
To only run necessary tasks to update aliases and cronjobs, use --tags update
ansible-playbook plays/heyu.yml --tags update
GPLv3