Provide dev-tools with APT on Debian targets only, with privilege escalation
This commit is contained in:
		
							parent
							
								
									b0333049d5
								
							
						
					
					
						commit
						cec0d7cd8c
					
				
					 1 changed files with 34 additions and 31 deletions
				
			
		|  | @ -1,39 +1,42 @@ | ||||||
| --- | --- | ||||||
| # tasks file for jotbe.dev-tools | # tasks file for jotbe.dev-tools | ||||||
| 
 | - name: Provide dev-tools | ||||||
| - name: Add key for Sublime Text repo |   block: | ||||||
|  |   - name: Add key for Sublime Text repo | ||||||
|     apt_key: |     apt_key: | ||||||
|       url: https://download.sublimetext.com/sublimehq-pub.gpg |       url: https://download.sublimetext.com/sublimehq-pub.gpg | ||||||
|       state: present |       state: present | ||||||
| 
 | 
 | ||||||
| - name: Add repository for Sublime Text |   - name: Add repository for Sublime Text | ||||||
|     apt_repository: |     apt_repository: | ||||||
|       repo: deb https://download.sublimetext.com/ apt/stable/ |       repo: deb https://download.sublimetext.com/ apt/stable/ | ||||||
|       state: present |       state: present | ||||||
| 
 | 
 | ||||||
| - name: Add key for VSCodium repo |   - name: Add key for VSCodium repo | ||||||
|     apt_key: |     apt_key: | ||||||
|       url: https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg |       url: https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg | ||||||
|       state: present |       state: present | ||||||
| 
 | 
 | ||||||
| - name: Add repository for VSCodium |   - name: Add repository for VSCodium | ||||||
|     apt_repository: |     apt_repository: | ||||||
|       repo: deb https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/repos/debs/ vscodium main |       repo: deb https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/repos/debs/ vscodium main | ||||||
|       state: present |       state: present | ||||||
| 
 | 
 | ||||||
| - name: Update apt cache |   - name: Update apt cache | ||||||
|     apt: |     apt: | ||||||
|       update_cache: yes |       update_cache: yes | ||||||
|       cache_valid_time: 7200 |       cache_valid_time: 7200 | ||||||
| 
 | 
 | ||||||
| - name: Install Sublime Text |   - name: Install Sublime Text | ||||||
|     apt: |     apt: | ||||||
|       pkg: |       pkg: | ||||||
|         - sublime-text |         - sublime-text | ||||||
|     register: sublime_text_installed |     register: sublime_text_installed | ||||||
| 
 | 
 | ||||||
| - name: Install VSCodium |   - name: Install VSCodium | ||||||
|     apt: |     apt: | ||||||
|       pkg: |       pkg: | ||||||
|         - codium |         - codium | ||||||
|     register: vscodium_installed |     register: vscodium_installed | ||||||
|  |   when: ansible_facts['os_family'] == 'Debian' | ||||||
|  |   become: yes | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue