Browse Source
disable rhsm repo when rhel_enable_repos is false (#9973)
Signed-off-by: tu1h <lihai.tu@daocloud.io>
pull/9986/head
Louis Tu
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
4 deletions
-
roles/bootstrap-os/tasks/bootstrap-redhat.yml
|
|
@ -76,9 +76,8 @@ |
|
|
|
name: |
|
|
|
- "rhel-7-server-rpms" |
|
|
|
- "rhel-7-server-extras-rpms" |
|
|
|
state: enabled |
|
|
|
state: "{{ 'enabled' if (rhel_enable_repos | default(True) | bool) else 'disabled' }}" |
|
|
|
when: |
|
|
|
- rhel_enable_repos | default(True) | bool |
|
|
|
- ansible_distribution_major_version == "7" |
|
|
|
|
|
|
|
# container-selinux is in appstream repo |
|
|
@ -87,9 +86,8 @@ |
|
|
|
name: |
|
|
|
- "rhel-8-for-*-baseos-rpms" |
|
|
|
- "rhel-8-for-*-appstream-rpms" |
|
|
|
state: enabled |
|
|
|
state: "{{ 'enabled' if (rhel_enable_repos | default(True) | bool) else 'disabled' }}" |
|
|
|
when: |
|
|
|
- rhel_enable_repos | default(True) | bool |
|
|
|
- ansible_distribution_major_version == "8" |
|
|
|
|
|
|
|
- name: Check presence of fastestmirror.conf |
|
|
|