27 lines
545 B
YAML
27 lines
545 B
YAML
|
---
|
||
|
- name: Remove unwanted packages
|
||
|
ansible.builtin.yum:
|
||
|
name:
|
||
|
- docker
|
||
|
- docker-client
|
||
|
- docker-client-latest
|
||
|
- docker-common
|
||
|
- docker-latest
|
||
|
- docker-latest-logrotate
|
||
|
- docker-logrotate
|
||
|
- docker-engine
|
||
|
state: absent
|
||
|
|
||
|
- name: Add repo
|
||
|
ansible.builtin.copy:
|
||
|
src: docker-ce.repo
|
||
|
dest: /etc/yum.repos.d/docker-ce.repo
|
||
|
|
||
|
- name: Install packages
|
||
|
ansible.builtin.yum:
|
||
|
name:
|
||
|
- docker-ce
|
||
|
- docker-ce-cli
|
||
|
- docker-ce-rootless-extras
|
||
|
- docker-scan-plugin
|