mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	internetarchive - install yarn (failing)
This commit is contained in:
		
							parent
							
								
									1a34c04faf
								
							
						
					
					
						commit
						658e850552
					
				
					 1 changed files with 22 additions and 5 deletions
				
			
		| 
						 | 
					@ -12,19 +12,36 @@
 | 
				
			||||||
         - cmake
 | 
					         - cmake
 | 
				
			||||||
      state: present
 | 
					      state: present
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Create top level {{ internetarchive_dir }} if reqd
 | 
					- name: Setup for yarn install from its own repo 1/2
 | 
				
			||||||
  command: mkdir -p {{ internetarchive_dir }}
 | 
					  command: curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
 | 
				
			||||||
  args:
 | 
					  args:
 | 
				
			||||||
    chdir: "{{ iiab_base }}"
 | 
					    chdir: "{{ iiab_base }}"
 | 
				
			||||||
  when: internet_available
 | 
					  when: internet_available
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Run 'sudo npm install dweb-archive dweb-mirror --allow-root --unsafe-perm=true' to create /opt/iiab/internetarchive/node_modules (CAN TAKE ~5 MINUTES)
 | 
					- name: Setup for yarn install from its own repo 2/2
 | 
				
			||||||
  command: sudo npm install dweb-archive dweb-mirror --allow-root --unsafe-perm=true
 | 
					  command: echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
 | 
				
			||||||
 | 
					  args:
 | 
				
			||||||
 | 
					    chdir: "{{ iiab_base }}"
 | 
				
			||||||
 | 
					  when: internet_available
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- name: Install yarn
 | 
				
			||||||
 | 
					  package:
 | 
				
			||||||
 | 
					    name:
 | 
				
			||||||
 | 
					      - yarn
 | 
				
			||||||
 | 
					    state: present
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- name: Create directory {{ internetarchive_dir }}
 | 
				
			||||||
 | 
					  file:
 | 
				
			||||||
 | 
					    path: "{{ internetarchive_dir }}"
 | 
				
			||||||
 | 
					    state: directory
 | 
				
			||||||
 | 
					    owner: "root"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- name: Run yarn install to get needed modules (CAN TAKE ~5 MINUTES)
 | 
				
			||||||
 | 
					  command: sudo yarn add @internetarchive/dweb-archive @internetarchive/dweb-mirror
 | 
				
			||||||
  args:
 | 
					  args:
 | 
				
			||||||
    chdir: "{{ internetarchive_dir }}"
 | 
					    chdir: "{{ internetarchive_dir }}"
 | 
				
			||||||
  when: internet_available
 | 
					  when: internet_available
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
# CONFIG FILES
 | 
					# CONFIG FILES
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Install from templates: internetarchive.service (systemd), internetarchive.conf (Apache)"
 | 
					- name: "Install from templates: internetarchive.service (systemd), internetarchive.conf (Apache)"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue