This website works better with JavaScript.
Home
DryCat.fr
Help
Register
Sign In
DryAnsible
/
ansible-matrix
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Add coturn playbook
master
Dryusdan
1 year ago
parent
e96ee68dc3
commit
4d366fd67a
3 changed files
with
36 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+28
-0
roles/coturn/tasks/main.yml
+1
-0
roles/coturn/templates/coturn.j2
+7
-0
roles/coturn/templates/turnserver.conf.j2
+ 28
- 0
roles/coturn/tasks/main.yml
View File
@ -0,0 +1,28 @@
---
-
name
:
Install coturn
apt:
name
:
"{{ packages }}"
vars:
packages:
-
coturn
-
name
:
Set template
template:
src
:
turnserver.conf.j2
dest
:
/etc/turnserver.conf
owner
:
root
group
:
root
mode
:
0644
-
name
:
Set template
template:
src
:
coturn.j2
dest
:
/etc/default/coturn
owner
:
root
group
:
root
mode
:
0644
-
name
:
Start servic if not started
service:
name
:
coturn
state
:
restarted
+ 1
- 0
roles/coturn/templates/coturn.j2
View File
@ -0,0 +1 @@
TURNSERVER_ENABLED=1
+ 7
- 0
roles/coturn/templates/turnserver.conf.j2
View File
@ -0,0 +1,7 @@
# Full conf : https://github.com/coturn/coturn/blob/master/examples/etc/turnserver.conf
listening-port={{ coturn.listening_port }}
use-auth-secret
static-auth-secret={{ coturn.static_auth_secret }}
server-name={{ coturn.server_name }}
realm={{ coturn.realm }}
Write
Preview
Loading…
Cancel
Save