blob: ce1fb3003d298b5deb4a193c989f78361f6a7a9a (
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
|
- 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
|