Actualiser tasks/main.yml
This commit is contained in:
parent
4a214e8b95
commit
c423a802c3
1 changed files with 19 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue