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
  - name: Resgister and attach to RHEL Pool
      state: present
      username: RHN User name  ---> REPLACE
      password: RHN Password   ---> REPLACE
      pool_ids: Subscription Pool ID  ---> REPLACE


You must be logged in to post a comment.

Proudly powered by WordPress   Premium Style Theme by