2025-07-10 21:24:28 -06:00

19 lines
424 B
YAML

- name: Add Docker repository
ansible.builtin.get_url:
url: https://download.docker.com/linux/centos/docker-ce.repo
dest: /etc/yum.repos.d/docker-ce.repo
- name: Install Docker packages
ansible.builtin.dnf:
name:
- docker-ce
- docker-ce-cli
- containerd.io
state: present
- name: Enable and start Docker
ansible.builtin.service:
name: docker
enabled: yes
state: started