cloud-nextcloud-signaling/tasks/janus.yml
2023-08-26 18:46:03 +02:00

39 lines
1.1 KiB
YAML
Executable File

---
#- name: install janus from deb file
# apt:
# deb: "{{ signaling_janus_deb_target }}"
# state: "{% if cloud_update | bool %}latest{% else %}present{% endif %}"
# install_recommends: yes
- name: install janus
apt:
update_cache: yes
state: "{% if cloud_update | bool %}latest{% else %}present{% endif %}"
install_recommends: yes
pkg: janus
- name: configure janus server
lineinfile:
path: "/etc/janus/janus.jcfg"
regexp: '^\s*#?{{ configline.split("=")[0] }}{% if configline.split("=") | length > 1 %}={% endif %}'
line: " {{ configline }}"
loop: "{{ signaling_janus_configs }}"
loop_control:
loop_var: configline
label: '{{ configline.split("=")[0] }}'
notify: restart janus
- name: configure janus network
lineinfile:
path: "/etc/janus/janus.transport.http.jcfg"
regexp: '^\s*#?interface ='
line: ' interface = "lo"'
notify: restart janus
- name: configure janus network
lineinfile:
path: "/etc/janus/janus.transport.websockets.jcfg"
regexp: '^\s*#?ws_interface ='
line: ' ws_interface = "lo"'
notify: restart janus