Ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.7 KiB

---
- name: Deploy prosody configuration
template: src=prosody.cfg.lua.j2 dest=/etc/prosody/ansible_conf.d/jitsi.cfg.lua
register: jitsi_prosody_conf
when: jitsi_xmpp_server in ['localhost', '127.0.0.1', inventory_hostname]
tags: jitsi
- name: Register XMPP accounts
block:
- name: Reload prosody
service: name=prosody state=restarted
- name: Register the focus user
command: prosodyctl register focus {{ jitsi_auth_domain }} '{{ jitsi_jicofo_xmpp_pass }}'
- name: Register the jigasi user
command: prosodyctl register jigasi {{ jitsi_auth_domain }} '{{ jitsi_jigasi_xmpp_pass }}'
when: jitsi_prosody_conf is defined and jitsi_prosody_conf.changed
tags: jitsi
- name: Deploy videobridge configuration
template: src=videobridge/{{ item }}.j2 dest={{ jitsi_root_dir }}/etc/videobridge/{{ item }} group={{ jitsi_user }} mode=640
loop:
- videobridge.conf
- sip-communicator.properties
notify: restart jitsi-videobridge
tags: jitsi
- name: Deploy jicofo configuration
template: src=jicofo/{{ item }}.j2 dest={{ jitsi_root_dir }}/etc/jicofo/{{ item }} group={{ jitsi_user }} mode=640
loop:
- jicofo.conf
- sip-communicator.properties
notify: restart jitsi-jicofo
tags: jitsi
- name: Deploy jigasiconfiguration
template: src=jigasi/{{ item }}.j2 dest={{ jitsi_root_dir }}/etc/jigasi/{{ item }} group={{ jitsi_user }} mode=640
loop:
- jigasi.conf
- sip-communicator.properties
notify: restart jitsi-jigasi
tags: jitsi
- name: Deploy meet configuration
template: src=meet.js.j2 dest={{jitsi_root_dir }}/meet/config.js
tags: jitsi
- name: Deploy nginx configuration
template: src=nginx.conf.j2 dest=/etc/nginx/ansible_conf.d/10-jitsi.conf
notify: reload nginx
tags: jitsi