mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-10-28 21:07:06 +01:00
build
This commit is contained in:
1 parent
bac47f79de
commit
1647152c14
1 file changed
+4
-9
@@ -27,19 +27,14 @@
|
|||||||
- 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:
|
||||||
|
|||||||
Reference in new issue
Block a user