1
0
Fork 0

Add more configuration

experiments
Ambrose Chua 2020-01-26 19:51:04 +08:00
parent 369e93a9d8
commit d85b57cb61
9 changed files with 102 additions and 8 deletions

View File

@ -1,5 +0,0 @@
---
- include: general.yml
- include: packages.yml
- include: voctomix2.yml
tags: encodermode

View File

@ -1 +0,0 @@
---

View File

@ -1,2 +0,0 @@
---

View File

@ -0,0 +1,6 @@
---
- include: general.yml
- include: packages.yml
- include: voctomix.yml
- include: voctocore.yml
- include: voctogui.yml

View File

@ -0,0 +1,21 @@
---
- name: installed packages required to be a mixer
apt: name={{ item }} state=latest
with_items:
- gstreamer1.0-plugins-bad
- gstreamer1.0-plugins-base
- gstreamer1.0-plugins-good
- gstreamer1.0-plugins-ugly
- gstreamer1.0-alsa
- gstreamer1.0-pulseaudio
- gstreamer1.0-tools
- libgstreamer1.0-0
- python3
- python3-gi
- python3-gi-cairo
- python3-pyinotify
- python3-scipy
- python3-sdnotify
- gir1.2-gstreamer-1.0
- gir1.2-gst-plugins-base-1.0
- gir1.2-gtk-3.0

View File

@ -0,0 +1,32 @@
---
- name: create voctocore config
template: src="voctomix2-config/voctocore-config.ini.j2"
dest="/opt/voctomix2/voctocore-config.ini"
mode=0644 owner=root group=root
when: voctomix_sources is defined
- name: create voctocore systemd-unit
template: src="voctomix2-systemd-units/voctomix2-voctocore.service.j2"
dest="/etc/systemd/system/voctomix2-voctocore.service"
mode=0644 owner=root group=root
- name: reload systemd daemon
command: systemctl daemon-reload
changed_when: false
- name: enable & (re)start voctomix2-voctocore.service when in voctomix-mode
service: name=voctomix2-voctocore.service
enabled=yes
state=restarted
when: encodermode is defined and encodermode == 'hd-voctomix2'
- name: disable & stop voctomix2-voctocore.service when not in voctomix-mode
service: name=voctomix2-voctocore.service
enabled=no
state=stopped
when: encodermode is not defined or encodermode != 'hd-voctomix2'
- name: create voctomix2-status script
template: src="voctomix2-scripts/voctomix-status.j2"
dest="/usr/bin/voctomix2-status"
mode=0755 owner=root group=root

View File

@ -0,0 +1,27 @@
---
- name: create voctogui config
template: src=voctomix2-config/voctogui-config.ini.j2
dest=/opt/voctomix2/voctogui-config.ini
mode=0644 owner=root group=root
- name: create voctogui systemd-unit
template: src=systemd-units/voctomix2-voctogui.service.j2
dest=/etc/systemd/system/voctomix2-voctogui.service
mode=0644 owner=root group=root
- name: reload systemd daemon
command: systemctl daemon-reload
changed_when: false
- name: enable & start voctogui service when in voctomix-mode
service: name=voctomix2-voctogui
enabled=yes
state=started
when: encodermode is defined and encodermode == 'hd-voctomix2'
- name: disable & stop voctogui service when not in voctomix-mode
service: name=voctomix2-voctogui
enabled=no
state=stopped
when: encodermode is not defined or encodermode != 'hd-voctomix2'

View File

@ -0,0 +1,16 @@
---
# directories & code
- name: create voctomix directories
file: dest={{ item }} state=directory
owner=root group=root
with_items:
- /opt/voctomix/scripts/
- /opt/voctomix/release/
- name: checkout voctomix release
git: repo=https://github.com/voc/voctomix
dest=/opt/voctomix/release/
version={{ voctomix.version }}
force=yes
accept_hostkey=yes