From b4d8d5a567982f79ff638bd29e324f69beb6444d Mon Sep 17 00:00:00 2001 From: nono Date: Wed, 16 Oct 2024 20:11:03 +0000 Subject: [PATCH] Actualiser tasks/setup-debian.yml --- tasks/setup-debian.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/tasks/setup-debian.yml b/tasks/setup-debian.yml index 5321b01..4daf478 100644 --- a/tasks/setup-debian.yml +++ b/tasks/setup-debian.yml @@ -1,10 +1,4 @@ -- - -- name: Update all packages to their latest version. - ansible.builtin.apt: - name: "*" - state: latest - - name: Add the Apt signing key. ansible.builtin.get_url: url: https://download.docker.com/linux/debian/gpg @@ -13,4 +7,13 @@ - 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 \ No newline at end of file + 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 \ No newline at end of file