fix split of coturn and nextcloud

This commit is contained in:
lhahn committed 2023-08-26 21:08:52 +02:00
1 parent ec078949c8
commit 8782b045f0
3 files changed
-63

No files matched your search

-32
View File
@@ -1,32 +0,0 @@
---
- 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
-2
View File
@@ -42,5 +42,3 @@
- name: install notify_push (file high-performance-backend)
include_tasks: file_hpb.yml
- name: install coturn server
include_tasks: coturn.yml