Add ola and foobazdmx role and add playbook for light.z9

This commit is contained in:
yuri 2022-11-11 14:10:43 +01:00
commit aefdd123a4
No known key found for this signature in database
GPG key ID: E646779AC54AEC64
16 changed files with 168 additions and 0 deletions

View file

@ -0,0 +1,5 @@
- name: Restart olad
ansible.builtin.systemd:
service: olad.service
state: restarted
daemon-reload: true

View file

@ -0,0 +1,8 @@
---
argument_specs:
main:
options:
ola__enable_ftdi:
description: Enable FTDI USB DMX support
type: bool
required: true

View file

@ -0,0 +1,8 @@
---
dependencies:
- role: distribution_check
vars:
distribution_check__supported_distributions:
- name: Debian
versions:
- "11"

View file

@ -0,0 +1,15 @@
- name: Install ola
ansible.builtin.apt:
name: ola
- name: Generate ola-ftdidmx.conf
ansible.builtin.template:
src: ola-ftdidmx.conf.j2
dest: /etc/ola/ola-ftdidmx.conf
mode: "0664"
owner: olad
group: olad
- name: Enable and start ola service
ansible.builtin.systemd:
name: olad.service
state: started
enabled: true

View file

@ -0,0 +1,2 @@
enabled = {{ ola__enable_ftdi | string | lower }}
frequency = 30