mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	Update main.yml
This commit is contained in:
		
							parent
							
								
									08735bbd3b
								
							
						
					
					
						commit
						feaf152f04
					
				
					 1 changed files with 15 additions and 6 deletions
				
			
		|  | @ -1,4 +1,16 @@ | |||
| - name: Set up Node.js 8.x apt sources (debuntu distros up to 2017) | ||||
| # 2019-01-16: duplicate Node.js code unified thanks to @jvonau. It's used by: | ||||
| #   roles/sugarizer/tasks/main.yml with roles/sugarizer/meta/main.yml | ||||
| #   roles/nodered/tasks/main.yml   with roles/nodered/meta/main.yml | ||||
| 
 | ||||
| # 2019-01-16: fyi Node.js 10.x became "LTS" on 2018-10-30 but distros are | ||||
| # holding back for now: certainly Ubuntu 18.04 and even Debian 10/Buster | ||||
| # ("testing" branch) both install Node.js 8.x (instead of 10.x).  While the | ||||
| # more bleeding-edge Debian Sid ("unstable" branch) does install Node.js 10.x | ||||
| # | ||||
| # This May Change: thanks all for running "apt -a list nodejs" on Buster's | ||||
| # daily builds @ www.debian.org/devel/debian-installer/ to keep us informed! | ||||
| 
 | ||||
| - name: Set up Node.js 8.x apt sources (debuntu distros UP TO 2017) | ||||
|   shell: curl -sL https://deb.nodesource.com/setup_8.x | bash - | ||||
|   args: | ||||
|     warn: no | ||||
|  | @ -6,7 +18,7 @@ | |||
|   # NOT NEC TO TEST FOR is_raspbian_8 OR is_raspbian_9 AS /opt/iiab/iiab/vars/<OS>.yml | ||||
|   # DEFINES THESE AS SUBSETS OF is_debian_8 OR is_debian_9 (FOR NOW!) | ||||
| 
 | ||||
| - name: Install latest Node.js which includes /usr/bin/npm (debuntu distros up to 2017) | ||||
| - name: Install latest Node.js which includes /usr/bin/npm (debuntu distros UP TO 2017) | ||||
|   package: | ||||
|     name: nodejs | ||||
|     # name: nodejs=8.x | ||||
|  | @ -14,8 +26,6 @@ | |||
|     # state: present | ||||
|   when: internet_available and (is_debian_8 or is_debian_9 or is_ubuntu_16 or is_ubuntu_17) | ||||
| 
 | ||||
| # 2019-01-15: BORROWED BY https://github.com/iiab/iiab/blob/master/roles/nodered/tasks/main.yml#L1-L26 | ||||
| 
 | ||||
| # 2018-07-14: BOTH STEPS ABOVE TAKE TIME, but Raspbian (apt offers npm | ||||
| # 1.4.21) & Debian 9 (apt offers no npm!) STILL NEED the above | ||||
| # nodesource.com approach to get a version of npm that works with Sugarizer: | ||||
|  | @ -35,11 +45,10 @@ | |||
| # where it upgrades /usr/bin/npm in place: | ||||
| # https://askubuntu.com/questions/1036278/npm-is-incorrect-version-on-latest-ubuntu-18-04-installation | ||||
| 
 | ||||
| - name: Install latest packages nodejs and npm (debuntu distros after 2017, or other distros) | ||||
| - name: Install latest packages nodejs and npm (debuntu distros AFTER 2017, or other distros) | ||||
|   package: | ||||
|     name: | ||||
|       - nodejs | ||||
|       - npm | ||||
|     state: latest | ||||
|   when: internet_available and not (is_debian_8 or is_debian_9 or is_ubuntu_16 or is_ubuntu_17) | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue