Add seconf foobazdmx for workshop
This commit is contained in:
parent
0f732833de
commit
e96f25cc4d
3 changed files with 23 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
foobazdmx__art_net_host: localhost
|
||||
foobazdmx_version: main
|
||||
foobazdmx_repo_url: "https://ccchh-ansible:glpat-istRKj5ivdBs_u9Tsdbp@gitlab.hamburg.ccc.de/ccchh/foobazdmx.git"
|
||||
foobazdmx_repo_url: "https://git.hamburg.ccc.de/CCCHH/foobazdmx.git"
|
||||
ola__configs:
|
||||
- name: ola-artnet
|
||||
content: "{{ lookup('ansible.builtin.file', 'z9/configs/light/ola/ola-artnet.conf') }}"
|
||||
|
|
|
@ -46,3 +46,15 @@
|
|||
service: foobazdmx.service
|
||||
state: started
|
||||
enabled: true
|
||||
- name: Generate foobazdmx-shop service file
|
||||
become: true
|
||||
ansible.builtin.template:
|
||||
src: foobazdmx-shop.service.j2
|
||||
dest: /etc/systemd/system/foobazdmx-shop.service
|
||||
mode: "0755"
|
||||
- name: Enable and start foobazdmx-shop service
|
||||
become: true
|
||||
ansible.builtin.systemd:
|
||||
service: foobazdmx-shop.service
|
||||
state: started
|
||||
enabled: true
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Foobaz-Shop DMX
|
||||
|
||||
[Service]
|
||||
ExecStart=poetry run python foobaz.py -a {{ foobazdmx__art_net_host }} -l 8081 -r shop -u 2
|
||||
WorkingDirectory=/opt/foobazdmx
|
||||
User=foobazdmx
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in a new issue