Actualiser tasks/setup-debian.yml
This commit is contained in:
		
							parent
							
								
									6c7e72fb67
								
							
						
					
					
						commit
						b4d8d5a567
					
				
					 1 changed files with 10 additions and 7 deletions
				
			
		| 
						 | 
					@ -1,10 +1,4 @@
 | 
				
			||||||
--
 | 
					--
 | 
				
			||||||
 | 
					 | 
				
			||||||
- name: Update all packages to their latest version.
 | 
					 | 
				
			||||||
  ansible.builtin.apt:
 | 
					 | 
				
			||||||
    name: "*"
 | 
					 | 
				
			||||||
    state: latest
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- name: Add the Apt signing key.
 | 
					- name: Add the Apt signing key.
 | 
				
			||||||
  ansible.builtin.get_url:
 | 
					  ansible.builtin.get_url:
 | 
				
			||||||
    url: https://download.docker.com/linux/debian/gpg
 | 
					    url: https://download.docker.com/linux/debian/gpg
 | 
				
			||||||
| 
						 | 
					@ -14,3 +8,12 @@
 | 
				
			||||||
  ansible.builtin.apt_repository:
 | 
					  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"
 | 
					    repo: "deb [arch={{ ansible_architecture }} signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian {{ ansible_distribution_release }} stable"
 | 
				
			||||||
    state: present
 | 
					    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
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue