Files

32 lines
699 B
YAML
Raw Permalink Normal View History

2026-10-02 21:34:01 +04:00
---
- name: install coturn
ansible.builtin.apt:
name: coturn
state: latest
update_cache: true
notify: restart coturn
- name: ensure /var/lib/coturn/certs exists
ansible.builtin.file:
path: /var/lib/turn/certs
owner: "turnserver"
group: "turnserver"
state: directory
- name: enable coturn daemon
ansible.builtin.copy:
src: coturn
dest: /etc/default/coturn
owner: root
group: root
mode: "0644"
notify: restart coturn
- name: deploy coturn config
ansible.builtin.template:
src: "{{ inventory_hostname }}/turnserver.conf.j2"
dest: /etc/turnserver.conf
owner: root
group: turnserver
mode: "0640"
notify: restart coturn