Actualiser tasks/setup-debian.yml

This commit is contained in:
nono 2024-10-16 20:11:03 +00:00
parent 6c7e72fb67
commit b4d8d5a567

View file

@ -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