Update DockerEngineInstall.yml
This commit is contained in:
		
							parent
							
								
									99794eb768
								
							
						
					
					
						commit
						9f11feafd0
					
				| @ -11,7 +11,7 @@ | |||||||
|         cache_valid_time: 86400 |         cache_valid_time: 86400 | ||||||
|         # cache_valid_time = One day |         # cache_valid_time = One day | ||||||
| 
 | 
 | ||||||
|     - name: Install dependencies |     - name: dependencies | ||||||
|       apt: |       apt: | ||||||
|         state: present |         state: present | ||||||
|         name: |         name: | ||||||
| @ -19,35 +19,35 @@ | |||||||
|           - curl |           - curl | ||||||
|           - gnupg |           - gnupg | ||||||
| 
 | 
 | ||||||
|     - name: Create directory /etc/apt/keyrings |     - name: mkdir /etc/apt/keyrings | ||||||
|       file: |       file: | ||||||
|         path: /etc/apt/keyrings |         path: /etc/apt/keyrings | ||||||
|         state: directory |         state: directory | ||||||
|         mode: '0755' |         mode: '0755' | ||||||
| 
 | 
 | ||||||
|     - name: Download Docker GPG key and generate |     - name: download Docker GPG key  | ||||||
|       shell: curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg |       shell: curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg | ||||||
|       args: |       args: | ||||||
|         executable: /bin/bash |         executable: /bin/bash | ||||||
| 
 | 
 | ||||||
|     - name: Set permissions for Docker GPG key |     - name: set permissions for Docker GPG key | ||||||
|       file: |       file: | ||||||
|         path: /etc/apt/keyrings/docker.gpg |         path: /etc/apt/keyrings/docker.gpg | ||||||
|         mode: 'a+r' |         mode: 'a+r' | ||||||
| 
 | 
 | ||||||
|     - name: Add Docker APT repository |     - name: add Docker repository | ||||||
|       shell: | |       shell: | | ||||||
|         echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \ |         echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \ | ||||||
|           $(. /etc/os-release && echo $VERSION_CODENAME) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null |           $(. /etc/os-release && echo $VERSION_CODENAME) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | ||||||
|       args: |       args: | ||||||
|         executable: /bin/bash |         executable: /bin/bash | ||||||
| 
 | 
 | ||||||
|     - name: Update APT cache |     - name: update  | ||||||
|       apt: |       apt: | ||||||
|         update_cache: yes |         update_cache: yes | ||||||
|         upgrade: yes |         upgrade: yes | ||||||
| 
 | 
 | ||||||
|     - name: Install Docker Engine |     - name: install Docker Engine | ||||||
|       apt: |       apt: | ||||||
|         state: present |         state: present | ||||||
|         name: |         name: | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 YuruC3
						YuruC3