mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	ENFORCE: calibre-installer.py & Internet connection REQUIRED to install Calibre
This commit is contained in:
		
							parent
							
								
									359191818c
								
							
						
					
					
						commit
						6c37da065f
					
				
					 1 changed files with 4 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -29,10 +29,11 @@
 | 
			
		|||
    path: "{{ downloads_dir }}/calibre-installer.py"
 | 
			
		||||
  register: calib_inst
 | 
			
		||||
 | 
			
		||||
- name: FAIL (force Ansible to exit) IF /opt/iiab/downloads/calibre-installer.py doesn't exist
 | 
			
		||||
- name: FAIL (force Ansible to exit) IF /opt/iiab/downloads/calibre-installer.py doesn't exist OR Internet connection is missing
 | 
			
		||||
# meta: end_play
 | 
			
		||||
  fail:
 | 
			
		||||
    msg: "{{ downloads_dir }}/calibre-installer.py is REQUIRED in order to install Calibre."
 | 
			
		||||
  when: not calib_inst.stat.exists
 | 
			
		||||
    msg: "{{ downloads_dir }}/calibre-installer.py and an Internet connection are REQUIRED in order to install Calibre!"
 | 
			
		||||
  when: (not calib_inst.stat.exists) or (not internet_available)
 | 
			
		||||
 | 
			
		||||
# INSTALL THE LATEST CALIBRE (calibre-server etc) ON ALL OS'S - RUNS IF /usr/bin/calibre-uninstall DOES NOT ALEADY EXIST
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue