Browse Source
Fix CentOS Extras repo url for Oracle Linux 7 aarch64 (#9791)
pull/9800/head
王煎饼
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
roles/bootstrap-os/tasks/bootstrap-centos.yml
|
|
@ -79,7 +79,7 @@ |
|
|
|
- { option: "name", value: "CentOS-{{ ansible_distribution_major_version }} - Extras" } |
|
|
|
- { option: "enabled", value: "1" } |
|
|
|
- { option: "gpgcheck", value: "0" } |
|
|
|
- { option: "baseurl", value: "http://mirror.centos.org/centos/{{ ansible_distribution_major_version }}/extras/$basearch/{% if ansible_distribution_major_version|int > 7 %}os/{% endif %}" } |
|
|
|
- { option: "baseurl", value: "http://mirror.centos.org/{{ 'altarch' if (ansible_distribution_major_version | int) <= 7 and ansible_architecture == 'aarch64' else 'centos' }}/{{ ansible_distribution_major_version }}/extras/$basearch/{% if ansible_distribution_major_version|int > 7 %}os/{% endif %}" } |
|
|
|
when: |
|
|
|
- use_oracle_public_repo|default(true) |
|
|
|
- '''ID="ol"'' in os_release.stdout_lines' |
|
|
|