19 lines
		
	
	
		
			No EOL
		
	
	
		
			629 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			No EOL
		
	
	
		
			629 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| --
 | |
| - name: Add the Apt signing key.
 | |
|   ansible.builtin.get_url:
 | |
|     url: https://download.docker.com/linux/debian/gpg
 | |
|     dest: /etc/apt/keyrings/docker.asc
 | |
| 
 | |
| - name: Add docker-ce repo
 | |
|   ansible.builtin.apt_repository:
 | |
|     repo: "deb [arch={{ ansible_architecture }} signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian {{ ansible_distribution_release }} stable"
 | |
|     state: present
 | |
| 
 | |
| - name: Run the equivalent of "apt-get update" as a separate step
 | |
|   ansible.builtin.apt:
 | |
|     update_cache: yes
 | |
| 
 | |
| - name: Update all packages to their latest version.
 | |
|   ansible.builtin.apt:
 | |
|     name: "*"
 | |
|     state: latest |