ansible-role-docker/tasks/setup-redhat.yml

16 lines
No EOL
388 B
YAML

---
- name: Upgrade all packages
ansible.builtin.yum:
name: '*'
state: latest
- name: Install yum-utils package.
package:
name:
- yum-utils
state: present
- name: Add docker-ce repository via yum-config-manager.
shell: yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
args:
creates: /etc/yum.repos.d/docker-ce.repo