mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	Internet access test..more relevant..for IIAB docs
This commit is contained in:
		
							parent
							
								
									4dd927cfd0
								
							
						
					
					
						commit
						278ec39f2c
					
				
					 1 changed files with 7 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -94,10 +94,12 @@
 | 
			
		|||
 | 
			
		||||
 | 
			
		||||
# 2022-06-30: internet_available var removed
 | 
			
		||||
- name: 'Test for Internet access, using: {{ iiab_download_url }}/heart-beat.txt'
 | 
			
		||||
- name: 'Test for Internet access, using: https://wiki.iiab.io'
 | 
			
		||||
  get_url:
 | 
			
		||||
    url: "{{ iiab_download_url }}/heart-beat.txt"
 | 
			
		||||
    dest: /tmp/heart-beat.txt
 | 
			
		||||
    #url: "{{ iiab_download_url }}/heart-beat.txt"
 | 
			
		||||
    url: https://wiki.iiab.io
 | 
			
		||||
    #dest: /tmp/heart-beat.txt
 | 
			
		||||
    dest: /tmp/internet_access_test.html
 | 
			
		||||
    #timeout: "{{ download_timeout }}"
 | 
			
		||||
    # @jvonau recommends: 100sec is too much (keep 10sec default)
 | 
			
		||||
  ignore_errors: True
 | 
			
		||||
| 
						 | 
				
			
			@ -105,9 +107,9 @@
 | 
			
		|||
  #poll: 2
 | 
			
		||||
  register: internet_access_test
 | 
			
		||||
 | 
			
		||||
- name: Remove downloaded Internet test file /tmp/heart-beat.txt
 | 
			
		||||
- name: Remove downloaded Internet test file /tmp/internet_access_test.html
 | 
			
		||||
  file:
 | 
			
		||||
    path: /tmp/heart-beat.txt
 | 
			
		||||
    path: /tmp/internet_access_test.html
 | 
			
		||||
    state: absent
 | 
			
		||||
 | 
			
		||||
- name: Run /usr/bin/iiab-refresh-wiki-docs (scraper script) to create http://box/info offline documentation.  (This script was installed in Stage 3 = roles/3-base-server/tasks/main.yml, which ran roles/www_base/tasks/main.yml)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue