mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-03-12 21:32:48 +01:00
klal
This commit is contained in:
@@ -82,6 +82,9 @@
|
||||
dnf:
|
||||
name: containerd.io
|
||||
state: present
|
||||
repeat: 3
|
||||
delay: 10
|
||||
until: containerd is installed
|
||||
|
||||
- name: Configure containerd
|
||||
shell: |
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user