Strange behaviour of subscription manager

VM is on Rocky Linux 8.8

I’m trying to do command:

[root@VM_name ~]# subscription-manager register --force --org='OrgName' --activationkey='Rocky 8'

but getting an error:

Unit *some_id* has been deleted (HTTP error code 410: Gone)

If I do it again – it will be fine

[root@VM_name ~]# subscription-manager register --force --org='OrgName' --activationkey='Rocky 8'
The system has been registered with ID: *another_id*
The registered system name is: *FQDN_name_of_VM*

How can I rid of this issue to make it only one command call? Because I’m trying to make registration automatic via Ansible and keep getting this error over and over again and should always run playbook twice.

Leave a Comment