This commit is contained in:
2026-03-04 19:07:28 +01:00
parent bd0034cc2e
commit ac622acc10
2 changed files with 16 additions and 6 deletions

View File

@@ -82,6 +82,9 @@
dnf:
name: containerd.io
state: present
repeat: 3
delay: 10
until: containerd is installed
- name: Configure containerd
shell: |

View File

@@ -4,6 +4,8 @@
vars:
mirror_url: "http://192.168.77.101:8383/rocky/$releasever"
mirror_url_docker: "http://192.168.77.101:8383/docker-ce-stable"
mirror_url_docker_def: "https://download.docker.com/linux/centos/$releasever/$basearch/stable"
block:
- name: Facts
@@ -43,14 +45,19 @@
option: baseurl
value: "{{ mirror_url }}/baseos/"
- name: Set AppStream baseurl
- name: Set BaseOS baseurl
ansible.builtin.ini_file:
path: /etc/yum.repos.d/rocky.repo
section: appstream
section: baseos
option: baseurl
value: "{{ mirror_url }}/appstream/"
value: "{{ mirror_url }}/baseos/"
- name: Set docker baseurl
ansible.builtin.ini_file:
path: /etc/yum.repos.d/docker-ce.repo
section: docker-ce-stable
option: baseurl
value: "{{ mirror_url_docker }}"
- name: Clean DNF cache
command: dnf clean all