Narete stvari da delajo

This commit is contained in:
Miha Frangež 2025-09-12 17:43:50 +02:00
parent 64a10b0512
commit 29b2beca5a
45 changed files with 809 additions and 1600 deletions

View file

@ -14,4 +14,3 @@ WorkingDirectory={{ INSTALL_BASE }}
[Install]
WantedBy=mm-controller.target
DefaultInstance=main

View file

@ -29,11 +29,11 @@ predavalnice_pi:
- position: main
model: barco_G62
port: 3023
ip: 192.168.192.13
ip: 192.168.192.12
- position: side
model: barco_G62
port: 3023
ip: 192.168.192.14
ip: 192.168.192.13
tse_box:
@ -47,5 +47,5 @@ predavalnice_pi:
lucke:
url: http://192.168.190.90:8091
roomId: 0
roomId: 1
bearer_token: 0954afe1-4111-4f89-a123-fea08a55dc46

View file

@ -106,6 +106,11 @@
src: ./malinaConfig.toml.j2
dest: "{{INSTALL_BASE}}/malinaConfig.toml"
- name: Install python libraries
ansible.builtin.shell:
cmd: "poetry install"
chdir: "{{INSTALL_BASE}}"
#
# INSTALL FRONTEND
@ -129,16 +134,11 @@
- name: Fix www root permission
become: true
ansible.builtin.file:
path: "/var/www/html/"
path: "/var/www/html"
owner: pi
group: pi
recurse: true
mode: '0644'
- name: Install python libraries
ansible.builtin.shell:
cmd: "poetry install"
chdir: "{{INSTALL_BASE}}/controller"
mode: 'u=rwX,g=rX,o=rX'
#
# SERVICES
@ -175,7 +175,7 @@
- barco@side.service
# Lifti za projektorje (naši releji)
- name: template projector motors service
- name: template projector motors service
when: projector_motors is defined
block:
- name: template service
@ -191,7 +191,7 @@
enabled: true
state: restarted
daemon_reload: true
# Power, platna, etc. (TSE relay box)
- name: template tse serial box service
when: tse_box is defined