Registering to RHSM using Ansible

Ansible make it very easy to register the Redhat system to the Redhat Customer portal using the redhat_subscription module. One of the method is to use define the pool ID of the subscription against which the system needs to be registered & consumed.

---
- name: Register & Subscribe to RHSM
  hosts: all
  tasks:
  - name: Resgister and attach to RHEL Pool
    redhat_subscription:
      state: present
      username: RHN User name  ---> REPLACE
      password: RHN Password   ---> REPLACE
      pool_ids: Subscription Pool ID  ---> REPLACE


Share

You must be logged in to post a comment.

Proudly powered by WordPress   Premium Style Theme by www.gopiplus.com