mirror of
https://github.com/de-it-krachten/ansible-role-rhsm
synced 2026-09-15 03:51:53 +00:00
No description
- Jinja 100%
|
|
||
|---|---|---|
| .github/workflows | ||
| defaults | ||
| meta | ||
| molecule/default | ||
| tasks | ||
| .ansible-lint | ||
| .cicd | ||
| .cicd.overwrite | ||
| .collections | ||
| .gitignore | ||
| .releaserc.yml | ||
| .roles | ||
| .yamllint | ||
| CHANGELOG.md | ||
| README.md | ||
ansible-role-rhsm
Attach host to RHSM (Red Hat Subscription Management)
Dependencies
Roles
None
Collections
- community.general
Platforms
Supported platforms
- Red Hat Enterprise Linux 81
- Red Hat Enterprise Linux 91
- Red Hat Enterprise Linux 101
Note: 1 : no automated testing is performed on these platforms
Role Variables
defaults/main.yml
# RHSM action to perform
rhsm_action: register
# RHSM activation key
rhsm_activationkey: "{{ lookup('env', 'RHSM_ACTIVATIONKEY') }}"
# RHSM organization id
rhsm_org_id: "{{ lookup('env', 'RHSM_ORG_ID') }}"
# RHSM repositories to enable
rhsm_repositories:
- rhel-{{ ansible_facts.distribution_major_version }}-for-x86_64-baseos-rpms
- rhel-{{ ansible_facts.distribution_major_version }}-for-x86_64-appstream-rpms
# Auto-subscribe to available content
rhsm_auto_attach: false
Example Playbook
molecule/default/converge.yml
- name: sample playbook for role 'rhsm'
hosts: all
become: 'yes'
tasks:
- name: Include role 'rhsm'
ansible.builtin.include_role:
name: rhsm