Actualiser tasks/main.yml

This commit is contained in:
nono 2024-10-16 19:24:34 +00:00
parent 4a214e8b95
commit c423a802c3

View file

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