From c423a802c3c4bf3c2349477deca7d8e30a7be992 Mon Sep 17 00:00:00 2001 From: nono Date: Wed, 16 Oct 2024 19:24:34 +0000 Subject: [PATCH] Actualiser tasks/main.yml --- tasks/main.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 1d53108..68f8eb4 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,4 +1,12 @@ - +- name: Ensure old versions of Docker are not installed. + package: + name: + - docker-ce + - docker-ce-cli + - containerd.io + - docker-buildx-plugin + - docker-compose-plugin + state: absent - include_tasks: setup-RedHat.yml when: ansible_os_family == 'RedHat' @@ -6,6 +14,16 @@ - include_tasks: setup-Debian.yml when: ansible_os_family == 'Debian' +- name: Install docker-ce packages. + package: + name: + - docker-ce + - docker-ce-cli + - containerd.io + - docker-buildx-plugin + - docker-compose-plugin + state: present + - name: restart docker service: name: docker