Browse Source

roles/coturn: add support for alpine linux

python3
Zolfa 5 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' - name: 'install coturn'
import_role: name='service' import_role: name='service'
vars: vars:
@ -57,4 +61,12 @@
notify: 'restart coturn' notify: 'restart coturn'
tags: tags:
- 'service_password' - '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 #secure-stun
no-cli no-cli
{% if ansible_distribution == 'Alpine' %}
proc-user=turnserver
proc-group=turnserver
{% endif %}

Loading…
Cancel
Save