mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	remove nodesource.list if failed
This commit is contained in:
		
							parent
							
								
									42042976f4
								
							
						
					
					
						commit
						dc35445c9c
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -94,6 +94,12 @@
 | 
			
		|||
  #  warn: no
 | 
			
		||||
  #  creates: /etc/apt/sources.list.d/nodesource.list
 | 
			
		||||
 | 
			
		||||
- name: Remove /etc/apt/sources.list.d/nodesource.list if install failed above
 | 
			
		||||
  file:
 | 
			
		||||
    path: /etc/apt/sources.list.d/nodesource.list
 | 
			
		||||
    state: absent
 | 
			
		||||
  when: curl_nodesource.failed
 | 
			
		||||
 | 
			
		||||
- name: Install latest Node.js -- includes /usr/bin/npm if nodesource installed above
 | 
			
		||||
  package:
 | 
			
		||||
    #name: nodejs={{ nodejs_version }}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue