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: dnf:
name: containerd.io name: containerd.io
state: present state: present
repeat: 3
delay: 10
until: containerd is installed
- name: Configure containerd - name: Configure containerd
shell: | shell: |
@@ -262,7 +265,7 @@
create: yes create: yes
loop: "{{ aliases | dict2items }}" loop: "{{ aliases | dict2items }}"
when: inventory_hostname.endswith('-vm01.home.lan') when: inventory_hostname.endswith('-vm01.home.lan')
- name: Allow TCP 10250 from 192.168.77.0/24 - name: Allow TCP 10250 from 192.168.77.0/24
firewalld: firewalld:
source: 192.168.77.0/24 source: 192.168.77.0/24

View File

@@ -4,6 +4,8 @@
vars: vars:
mirror_url: "http://192.168.77.101:8383/rocky/$releasever" 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: block:
- name: Facts - name: Facts
@@ -43,14 +45,19 @@
option: baseurl option: baseurl
value: "{{ mirror_url }}/baseos/" value: "{{ mirror_url }}/baseos/"
- name: Set BaseOS baseurl
- name: Set AppStream baseurl
ansible.builtin.ini_file: ansible.builtin.ini_file:
path: /etc/yum.repos.d/rocky.repo path: /etc/yum.repos.d/rocky.repo
section: appstream section: baseos
option: baseurl 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 - name: Clean DNF cache
command: dnf clean all command: dnf clean all