blob: 1be7d4ef8bc26a184b3f26584875bfa05206b6d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
- name: install packages
dnf:
name: '{{ coturn_packages }}'
state: present
- name: generate coturn configuration
template:
src: etc/coturn/turnserver.conf.j2
dest: /etc/coturn/turnserver.conf
owner: root
group: coturn
mode: 0640
notify: restart coturn
- name: open firewall ports
firewalld:
port: '{{ item }}'
permanent: yes
immediate: yes
state: enabled
loop:
- '{{ coturn_port }}/tcp'
- '{{ coturn_port }}/udp'
- '{{ coturn_min_port }}-{{ coturn_max_port }}/udp'
tags: firewalld
- name: enable coturn
systemd:
name: coturn
state: enabled
started: yes
|