Browse Source

roles/coturn: add support for alpine linux

python3
Zolfa 4 years ago
parent
commit
e6f1e96a6c
Signed by: zolfa GPG Key ID: E1A43B038C4D6616
2 changed files with 17 additions and 1 deletions
  1. +13
    -1
      roles/coturn/tasks/main.yaml
  2. +4
    -0
      roles/coturn/templates/turnserver.conf.j2

+ 13
- 1
roles/coturn/tasks/main.yaml View File

@ -1,4 +1,8 @@
---
- name: 'alpine links'
file: path='/etc/init.d/coturn' src='turnserver' state='link' force=true
when: ansible_distribution == 'Alpine'
- name: 'install coturn'
import_role: name='service'
vars:
@ -57,4 +61,12 @@
notify: 'restart coturn'
tags:
- 'service_password'
...
- name: 'alpine links'
file: path='/etc/coturn/turnserver.conf' src='../turnserver.conf' state='link'
when: ansible_distribution == 'Alpine'
notify: 'restart coturn'
- name: 'alpine init fix 1'
lineinfile: path='/etc/init.d/turnserver' line='command_user=root' regexp='^command_user='
notify: 'restart coturn'

+ 4
- 0
roles/coturn/templates/turnserver.conf.j2 View File

@ -50,3 +50,7 @@ syslog
#secure-stun
no-cli
{% if ansible_distribution == 'Alpine' %}
proc-user=turnserver
proc-group=turnserver
{% endif %}

Loading…
Cancel
Save