Installing neovim from binary on Ubuntu
This commit is contained in:
		
							parent
							
								
									988c38c0fd
								
							
						
					
					
						commit
						b5dfc6c811
					
				
					 3 changed files with 35 additions and 2 deletions
				
			
		|  | @ -2,7 +2,6 @@ | |||
| - hosts: all | ||||
|   vars: | ||||
|     common_packages: | ||||
|       - neovim | ||||
|       - ripgrep | ||||
|       - tree | ||||
|       - gcc | ||||
|  | @ -13,10 +12,12 @@ | |||
|       - fzf | ||||
| 
 | ||||
|     brew_packages: | ||||
|       - neovim | ||||
|       - difftastic | ||||
|       - fd | ||||
| 
 | ||||
|     pacman_packages: | ||||
|       - neovim | ||||
|       - difftastic | ||||
|       - fd | ||||
| 
 | ||||
|  | @ -78,6 +79,33 @@ | |||
|         pkg: "{{ common_packages }}" | ||||
|         cache_valid_time: 3600 | ||||
| 
 | ||||
|     - name: Install Neovim (Ubuntu) | ||||
|       when: is_ubuntu | ||||
|       block: | ||||
|         - name: Create a temporary directory | ||||
|           ansible.builtin.tempfile: | ||||
|             state: directory | ||||
|             prefix: uv_temp_ | ||||
|           register: temp_dir | ||||
| 
 | ||||
|         - name: Download Neovim tarball | ||||
|           ansible.builtin.get_url: | ||||
|             url: 'https://github.com/neovim/neovim/releases/latest/download/nvim-linux64.tar.gz' | ||||
|             dest: "{{ temp_dir.path }}/nvim.tar.gz" | ||||
|             mode: 'u=r,g=,o=' | ||||
| 
 | ||||
|         - name: Unpack the tarball | ||||
|           become: true | ||||
|           ansible.builtin.unarchive: | ||||
|             src: "{{ temp_dir.path }}/nvim.tar.gz" | ||||
|             dest: "/opt" | ||||
|             remote_src: true | ||||
| 
 | ||||
|         - name: Clean up temporary directory | ||||
|           ansible.builtin.file: | ||||
|             path: "{{ temp_dir.path }}" | ||||
|             state: absent | ||||
| 
 | ||||
|     - name: Install uv packages | ||||
|       ansible.builtin.command: "uv tool install --python {{ item.python | default(uv_tools_default_python) }} {{ item.name }}" | ||||
|       register: uv_install_result | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue