2022-01-13 00:16:33 +00:00
|
|
|
---
|
|
|
|
- name: Remove unwanted packages
|
|
|
|
ansible.builtin.apt:
|
|
|
|
name:
|
|
|
|
- docker
|
|
|
|
- docker-engine
|
|
|
|
- docker.io
|
|
|
|
- containerd
|
|
|
|
- runc
|
|
|
|
state: absent
|
|
|
|
|
|
|
|
- name: Add docker repo signing key
|
|
|
|
ansible.builtin.copy:
|
|
|
|
src: docker-archive-keyring.gpg
|
|
|
|
dest: /usr/share/keyrings/docker-archive-keyring.gpg
|
|
|
|
|
|
|
|
- name: Add docker repo
|
|
|
|
ansible.builtin.copy:
|
|
|
|
src: docker.list
|
|
|
|
dest: /etc/apt/sources.list.d/docker.list
|
|
|
|
|
|
|
|
- name: Install docker packages
|
|
|
|
ansible.builtin.apt:
|
|
|
|
name:
|
|
|
|
- docker-ce-cli
|
|
|
|
- docker-ce-rootless-extras
|
|
|
|
- docker-ce
|
|
|
|
- docker-scan-plugin
|
|
|
|
state: present
|
2022-01-13 20:58:22 +00:00
|
|
|
update_cache: yes
|