Refactor(defaults): centralize bootstrap_os defaults (#13155)

This commit is contained in:
Yang-Ming Lin
2026-04-09 11:05:38 +08:00
committed by GitHub
parent f0c965f1ed
commit 00a0479078
3 changed files with 8 additions and 4 deletions

View File

@@ -69,7 +69,7 @@
name:
- "rhel-8-for-*-baseos-rpms"
- "rhel-8-for-*-appstream-rpms"
state: "{{ 'enabled' if (rhel_enable_repos | default(True) | bool) else 'disabled' }}"
state: "{{ 'enabled' if (rhel_enable_repos | bool) else 'disabled' }}"
when:
- ansible_distribution_major_version == "8"
- (not rh_subscription_status.changed) or (rh_subscription_username is defined) or (rh_subscription_org_id is defined)