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

16 lines
388 B
YAML
Raw Normal View History

2024-10-16 19:15:08 +00:00
---
2024-10-16 19:32:42 +00:00
- name: Upgrade all packages
ansible.builtin.yum:
name: '*'
state: latest
2024-10-16 19:15:08 +00:00
- 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:
2024-10-16 19:24:01 +00:00
creates: /etc/yum.repos.d/docker-ce.repo