fix split of coturn and nextcloud
This commit is contained in:
1 parent
dcdc06594d
commit
14b70537a7
5 files changed
+66
-14
No files matched your search
Executable
+32
@@ -0,0 +1,32 @@
|
||||
---
|
||||
- name: install coturn server
|
||||
apt:
|
||||
update_cache: yes
|
||||
state: "{% if cloud_update | bool %}latest{% else %}present{% endif %}"
|
||||
install_recommends: yes
|
||||
pkg:
|
||||
- "coturn"
|
||||
|
||||
- name: enable coturn server
|
||||
lineinfile:
|
||||
path: "/etc/default/coturn"
|
||||
regexp: '^#?TURNSERVER_ENABLED='
|
||||
line: "TURNSERVER_ENABLED=1"
|
||||
notify: restart coturn
|
||||
|
||||
- name: enable coturn server
|
||||
lineinfile:
|
||||
path: "/etc/turnserver.conf"
|
||||
regexp: '^#?{{ configline.split("=")[0] }}{% if configline.split("=") | length > 1 %}={% endif %}'
|
||||
line: "{{ configline }}"
|
||||
loop: "{{ coturn_configs }}"
|
||||
loop_control:
|
||||
loop_var: configline
|
||||
label: "{{ configline }}"
|
||||
notify: restart coturn
|
||||
|
||||
- name: set coturn capabilities for port setting
|
||||
capabilities:
|
||||
path: /usr/bin/turnserver
|
||||
capability: cap_net_bind_service=+ep
|
||||
state: present
|
||||
@@ -1,10 +1,4 @@
|
||||
---
|
||||
#- name: install janus from deb file
|
||||
# apt:
|
||||
# deb: "{{ signaling_janus_deb_target }}"
|
||||
# state: "{% if cloud_update | bool %}latest{% else %}present{% endif %}"
|
||||
# install_recommends: yes
|
||||
|
||||
- name: install janus
|
||||
apt:
|
||||
update_cache: yes
|
||||
|
||||
@@ -51,6 +51,8 @@
|
||||
|
||||
- include_tasks: nats.yml
|
||||
|
||||
- include_tasks: coturn.yml
|
||||
|
||||
- name: setup signaling systemd service unit
|
||||
template:
|
||||
src: "etc/systemd/system/signaling.service.j2"
|
||||
|
||||
Reference in new issue
Block a user