Skip to content
Snippets Groups Projects
Commit bf750959 authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Update CentOS yum repo to use vault url

parent ee4a96b6
No related branches found
No related tags found
No related merge requests found
---
- name: Remove mirrorlist from CentOS repo files
ansible.builtin.replace:
path: "{{ item }}"
regexp: '^mirrorlist'
replace: '#mirrorlist'
backup: yes
with_fileglob: '/etc/yum.repos.d/CentOS-*.repo'
- name: Use vault baseurl to CentOS repo files
ansible.builtin.replace:
path: "{{ item }}"
regexp: '^#baseurl=http://mirror.centos.org'
replace: 'baseurl=http://vault.centos.org'
backup: yes
with_fileglob: '/etc/yum.repos.d/CentOS-*.repo'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment