aboutsummaryrefslogtreecommitdiffstats
path: root/roles/coturn/tasks/main.yml
diff options
context:
space:
mode:
authorStonewall Jackson <stonewall@sacredheartsc.com>2023-03-04 08:15:50 -0500
committerStonewall Jackson <stonewall@sacredheartsc.com>2023-03-04 08:15:50 -0500
commit5be5831653ba3add91bffeb08d5b748ca849467a (patch)
tree9adef01c7a09275050f0abb0210a7c9bfbce4a3c /roles/coturn/tasks/main.yml
parentfa84ba76fd5740bc0eedc90462aec81ee7af5e79 (diff)
downloadselfhosted-5be5831653ba3add91bffeb08d5b748ca849467a.tar.gz
selfhosted-5be5831653ba3add91bffeb08d5b748ca849467a.zip
coturn: add After=network-online.target
Diffstat (limited to 'roles/coturn/tasks/main.yml')
-rw-r--r--roles/coturn/tasks/main.yml21
1 files changed, 19 insertions, 2 deletions
diff --git a/roles/coturn/tasks/main.yml b/roles/coturn/tasks/main.yml
index 1be7d4e..47981be 100644
--- a/roles/coturn/tasks/main.yml
+++ b/roles/coturn/tasks/main.yml
@@ -24,8 +24,25 @@
- '{{ coturn_min_port }}-{{ coturn_max_port }}/udp'
tags: firewalld
+- name: create systemd override directory
+ file:
+ path: /etc/systemd/system/coturn.service.d
+ state: directory
+
+- name: create systemd override file
+ copy:
+ src: etc/systemd/system/coturn.service.d/override.conf
+ dest: /etc/systemd/system/coturn.service.d/override.conf
+ register: coturn_systemd_unit
+ notify: restart coturn
+
+- name: reload systemd units
+ systemd:
+ daemon_reload: yes
+ when: coturn_systemd_unit.changed
+
- name: enable coturn
systemd:
name: coturn
- state: enabled
- started: yes
+ enabled: yes
+ state: started