From b42757d33019f60799080499d72e0979b390752f Mon Sep 17 00:00:00 2001
From: yun <yckaolalala@users.noreply.github.com>
Date: Fri, 30 Jun 2023 18:21:45 +0800
Subject: [PATCH] Fix RHEL subscription activation key by removing auto_attach
 and syspurpose (#10258)

---
 roles/bootstrap-os/tasks/bootstrap-redhat.yml | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/roles/bootstrap-os/tasks/bootstrap-redhat.yml b/roles/bootstrap-os/tasks/bootstrap-redhat.yml
index c9e53525b..a87046165 100644
--- a/roles/bootstrap-os/tasks/bootstrap-redhat.yml
+++ b/roles/bootstrap-os/tasks/bootstrap-redhat.yml
@@ -35,13 +35,7 @@
     state: present
     org_id: "{{ rh_subscription_org_id }}"
     activationkey: "{{ rh_subscription_activation_key }}"
-    auto_attach: true
     force_register: true
-    syspurpose:
-      usage: "{{ rh_subscription_usage }}"
-      role: "{{ rh_subscription_role }}"
-      service_level_agreement: "{{ rh_subscription_sla }}"
-      sync: true
   notify: RHEL auto-attach subscription
   become: true
   when:
-- 
GitLab