Added webcontrol API
This commit is contained in:
1 parent
a13f099e14
commit
30d1f24ef2
11 files changed
+154
-15
No files matched your search
+27
-3
@@ -55,7 +55,7 @@
|
||||
dest: /data/frigate-config/config.yaml
|
||||
mode: preserve
|
||||
|
||||
- name: Create temporary Docker build directory
|
||||
- name: Create temporary Docker build directory for frigate-notify
|
||||
ansible.builtin.tempfile:
|
||||
state: directory
|
||||
register: docker_build_dir
|
||||
@@ -73,7 +73,30 @@
|
||||
source: build
|
||||
force_source: true
|
||||
state: present
|
||||
- name: Remove temporary Docker build directory
|
||||
- name: Remove temporary Docker build directory for frigate-notify
|
||||
ansible.builtin.file:
|
||||
path: '{{docker_build_dir.path}}'
|
||||
state: absent
|
||||
|
||||
- name: Create temporary Docker build directory for frigate-webcontrol
|
||||
ansible.builtin.tempfile:
|
||||
state: directory
|
||||
register: docker_build_dir
|
||||
- name: Copy Docker build directory
|
||||
ansible.builtin.copy:
|
||||
src: webcontrol/
|
||||
dest: '{{docker_build_dir.path}}'
|
||||
mode: preserve
|
||||
- name: Build frigate-webcontrol Docker image
|
||||
ansible.builtin.docker_image:
|
||||
build:
|
||||
path: '{{docker_build_dir.path}}'
|
||||
name: frigate-webcontrol
|
||||
tag: latest
|
||||
source: build
|
||||
force_source: true
|
||||
state: present
|
||||
- name: Remove temporary Docker build directory for frigate-webcontrol
|
||||
ansible.builtin.file:
|
||||
path: '{{docker_build_dir.path}}'
|
||||
state: absent
|
||||
@@ -126,7 +149,8 @@
|
||||
- '{{item.reverse_proxy}}'
|
||||
- '{{item.reverse_proxy_port}}'
|
||||
with_items:
|
||||
- {service: frigate, port: 5000, domain: null, reverse_proxy: nginx_barad-dur, reverse_proxy_port: 443}
|
||||
- {service: frigate, port: 10000, domain: null, reverse_proxy: nginx_barad-dur, reverse_proxy_port: 443}
|
||||
- {service: frigate, port: 10001, domain: null, reverse_proxy: nginx_barad-dur, reverse_proxy_port: 443}
|
||||
- name: Insert into Postgres table service_data
|
||||
community.postgresql.postgresql_query:
|
||||
login_host: '{{homelab_config.database.host}}'
|
||||
|
||||
Reference in new issue
Block a user