We will only check the availability from the outside and set channelLastN afterwards
This commit is contained in:
		
							parent
							
								
									b05469e662
								
							
						
					
					
						commit
						d13cff64cc
					
				
					 1 changed files with 9 additions and 14 deletions
				
			
		|  | @ -67,20 +67,6 @@ | ||||||
|     that: |     that: | ||||||
|       - "output.ansible_facts['web']['jitsi_web_1'].state.running" |       - "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" | - name: "Test whether Jitsi is healthy from the outside" | ||||||
|   become: false |   become: false | ||||||
|   uri: |   uri: | ||||||
|  | @ -95,3 +81,12 @@ | ||||||
| - fail: | - fail: | ||||||
|     msg: 'Jitsi homepage is not available!' |     msg: 'Jitsi homepage is not available!' | ||||||
|   when: "'<title>Jitsi Meet' not in url_check.content" |   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 | ||||||
|  | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue