mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-03-12 21:32:48 +01:00
build
This commit is contained in:
@@ -27,20 +27,15 @@
|
|||||||
- name: Comment mirrorlist in [baseos]
|
- name: Comment mirrorlist in [baseos]
|
||||||
replace:
|
replace:
|
||||||
path: /etc/yum.repos.d/rocky.repo
|
path: /etc/yum.repos.d/rocky.repo
|
||||||
after: '^\[baseos\]'
|
regexp: '(^\[baseos\][^\[]*?)^mirrorlist=(.*)'
|
||||||
before: '^\['
|
replace: '\1#mirrorlist=\2'
|
||||||
regexp: '^mirrorlist='
|
|
||||||
replace: '#mirrorlist='
|
|
||||||
|
|
||||||
- name: Comment mirrorlist in [appstream]
|
- name: Comment mirrorlist in [appstream]
|
||||||
replace:
|
replace:
|
||||||
path: /etc/yum.repos.d/rocky.repo
|
path: /etc/yum.repos.d/rocky.repo
|
||||||
after: '^\[appstream\]'
|
regexp: '(^\[appstream\][^\[]*?)^mirrorlist=(.*)'
|
||||||
before: '^\['
|
replace: '\1#mirrorlist=\2'
|
||||||
regexp: '^mirrorlist='
|
|
||||||
replace: '#mirrorlist='
|
|
||||||
|
|
||||||
|
|
||||||
- name: Set BaseOS baseurl
|
- name: Set BaseOS baseurl
|
||||||
ansible.builtin.ini_file:
|
ansible.builtin.ini_file:
|
||||||
path: /etc/yum.repos.d/rocky.repo
|
path: /etc/yum.repos.d/rocky.repo
|
||||||
|
|||||||
Reference in New Issue
Block a user