-
Notifications
You must be signed in to change notification settings - Fork 5
/
go2rtc.yml
90 lines (72 loc) · 2.8 KB
/
go2rtc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
---
- hosts: homelab
vars:
application: go2rtc
docker_network: "{{ networks.iot }}"
handlers:
- name: Restart
community.docker.docker_container:
name: "{{ application }}"
restart: true
comparisons:
'*': ignore
tasks:
- name: Create config folder
ansible.builtin.file:
path: "{{ config_directory }}"
state: directory
owner: "{{ common_user }}"
group: "{{ common_group }}"
mode: "0771"
- name: Create config
ansible.builtin.copy:
content: |
streams:
reolink_doorbell:
- ffmpeg:rtsp://admin:{{ reolink_doorbell_password }}@reolink-doorbell.{{ common_local_tld }}:554/h264Preview_01_sub#audio=pcm#audio=volume
- rtsp://admin:{{ reolink_doorbell_password }}@reolink-doorbell.{{ common_local_tld }}:554/h264Preview_01_sub
driveway: rtspx://192.168.3.3:7441/SiIzjZyICCOaM23e
backyard: rtspx://192.168.3.3:7441/AKV6ed7s96ojGDU0
downstairs_common: rtspx://192.168.3.3:7441/pUoYtfbCbSjvhIyR
foyer: rtspx://192.168.3.3:7441/QfbyJT2WbsWBUqXU
front_bedrooms: rtspx://192.168.3.3:7441/CwFM91PCiKat6Z7T
garage: rtspx://192.168.3.3:7441/hmXnXbDRoF573SZ4
outdoor_side: rtspx://192.168.3.3:7441/zUs5nXcCogxPqbzi
rear_balcony: rtspx://192.168.3.3:7441/E82ebu7JnaHYUv9u
upstairs_hallway: rtspx://192.168.3.3:7441/QGDEqJaMlkK8volh
ffmpeg:
bin: ffmpeg
volume: "-af \"volume=20dB\""
dest: "{{ config_directory }}/go2rtc.yaml"
mode: "0660"
owner: "{{ common_user }}"
group: "{{ common_group }}"
notify: Restart
vars:
reolink_doorbell_password: !vault |
$ANSIBLE_VAULT;1.1;AES256
36373330303162383736366263383435616539303963373535333261343662333962366665656436
3064303337643030326265623963326461366161663932360a323236316161353165303034633038
36663633363032326230356663666632653463666636306262656164396130623731323036626433
3839323164626664350a636634356566323465653937626664306539383930383630613639363235
34633362333461336538366633633236326233343866306437626331396232643566
- name: Create container
ansible.builtin.include_role:
name: docker_container
vars:
image: alexxit/go2rtc:1.9.6-hardware
ipv4_address: "{{ docker_network.prefix }}.249"
device_requests:
- driver: nvidia
count: -1
device_ids: []
options: {}
capabilities:
- - gpu
- video
- compute
- utility
env:
TZ: "{{ common_timezone }}"
volumes:
- "{{ config_directory }}:/config"