nrec-ansible/project/roles/docker/tasks/packages_redhat.yml
Torjus Håkestad da57e58a3d
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Add docker role
2022-01-13 01:16:33 +01:00

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