nrec-ansible/project/roles/docker/tasks/packages_redhat.yml

27 lines
545 B
YAML
Raw Normal View History

2022-01-13 00:16:33 +00:00
---
- 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