Register a system with Red Hat Subscription-Manager — Ansible module redhat_subscription

How to automate the registration of a machine RedHat Enterprise Linux 8 to subscription-manager using the access.redhat.com credential, assign a pool of entitlement, and install some packages.