We will only check the availability from the outside and set channelLastN afterwards

This commit is contained in:
Jan Beilicke 2020-05-02 21:35:42 +02:00
parent b05469e662
commit d13cff64cc

View file

@ -67,20 +67,6 @@
that:
- "output.ansible_facts['web']['jitsi_web_1'].state.running"
- name: "Waiting for Jitsi container to become available"
become: false
wait_for:
host: localhost
port: "{{ jitsi_exposed_http_port }}"
- name: "Config: Set channelLastN"
lineinfile:
path: /home/{{ docker_user }}/jitsi/conf/web/config.js
regexp: '(\s*)channelLastN:\s*[^,]+,'
line: '\1channelLastN: {{jitsi_web_channel_last_n|default("-1")}},'
backrefs: yes
tags: config
- name: "Test whether Jitsi is healthy from the outside"
become: false
uri:
@ -95,3 +81,12 @@
- fail:
msg: 'Jitsi homepage is not available!'
when: "'<title>Jitsi Meet' not in url_check.content"
- name: "Config: Set channelLastN"
lineinfile:
path: /home/{{ docker_user }}/jitsi/conf/web/config.js
regexp: '(\s*)channelLastN:\s*[^,]+,'
line: '\1channelLastN: {{jitsi_web_channel_last_n|default("-1")}},'
backrefs: yes
tags: config