Skip to content
Snippets Groups Projects
Unverified Commit 43216436 authored by Louis Tu's avatar Louis Tu Committed by GitHub
Browse files

disable rhsm repo when rhel_enable_repos is false (#9973)


Signed-off-by: default avatartu1h <lihai.tu@daocloud.io>
parent cdc25523
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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