mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	remoteit/tasks/install.yml: Defer deletion of /etc/remoteit/registration
This commit is contained in:
		
							parent
							
								
									0d646a2b85
								
							
						
					
					
						commit
						5cd2187796
					
				
					 1 changed files with 8 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -47,7 +47,7 @@
 | 
			
		|||
    state: directory
 | 
			
		||||
    path: /etc/remoteit
 | 
			
		||||
 | 
			
		||||
- name: "'touch /etc/remoteit/registration' to block generation of claim code below, also speeding things up a bit"
 | 
			
		||||
- name: "'touch /etc/remoteit/registration' (might contain a remoteit_license_key) to prevent generation of claim code below; also speeding things up a bit"
 | 
			
		||||
  file:
 | 
			
		||||
    state: touch
 | 
			
		||||
    path: /etc/remoteit/registration
 | 
			
		||||
| 
						 | 
				
			
			@ -86,11 +86,13 @@
 | 
			
		|||
  when: is_linuxmint
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
- name: "'rm /etc/remoteit/registration' (empty file used just above)"
 | 
			
		||||
  file:
 | 
			
		||||
    state: absent
 | 
			
		||||
    path: /etc/remoteit/registration
 | 
			
		||||
  ignore_errors: yes    # In case a future version of install_agent.sh deletes it for us
 | 
			
		||||
# 2022-10-09: Let's keep the file (empty or not!)  If it exists with size zero
 | 
			
		||||
# bytes, enable-or-disable.yml or /usr/bin/iiab-remoteit delete it later as nec.
 | 
			
		||||
# - name: "'rm /etc/remoteit/registration' (empty file used just above)"
 | 
			
		||||
#   file:
 | 
			
		||||
#     state: absent
 | 
			
		||||
#     path: /etc/remoteit/registration
 | 
			
		||||
#   ignore_errors: yes    # In case a future version of install_agent.sh deletes it for us
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
- name: Install /usr/bin/iiab-remoteit from template -- so IIAB operators can quickly enable remote.it AND generate a new remote.it claim code (in /etc/remoteit/config.json) -- optionally downloading + installing the very latest Device Package (like the 2 steps above)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue