sap.sap_operations.subscription_manager role – Register host with subscription-manager

Note

This role is part of the sap.sap_operations collection.

It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it use: ansible-galaxy collection install sap.sap_operations.

To use it in a playbook, specify: sap.sap_operations.subscription_manager.

Entry point __author__ – Author Information

Synopsis

  • Kirill Satarin (@kksat)

Entry point __dependencies__ – Dependencies

Synopsis

  • None

Entry point __examples__ – Example Playbooks

Synopsis

    • name: Run role subscription_manager (registered)

  • ansible.builtin.include_role:

  • name: sap.sap_operations.subscription_manager

    • name: Run role subscription_manager (unregistered)

  • ansible.builtin.include_role:

  • name: sap.sap_operations.subscription_manager

  • vars:

  • subscription_manager_state: unregistered

Entry point __license__ – License

Synopsis

  • GPL-3.0-only

Entry point __limitations__ – Limitations

Synopsis

Entry point main – Register host with subscription-manager

Synopsis

  • Register host with subscription-manager

  • Role is suitable for containers as well

  • Role expects that ansible_user can sudo to root

  • Role expects that subscription-manager tool is already present

Parameters

Parameter

Comments

subscription_manager_activationkey

string

Activation key to use for registration

Organization and Activation key are both required together - role will fail if one is defined and another is not

subscription_manager_org

string

Organization to use for registration

Organization and Activation key are both required together - role will fail if one is defined and another is not

subscription_manager_password

string

Password to use for registration

Username and Password are both required together - role will fail if one is defined and another is not

If Username and Password are defined they will be used over org and Activation key

subscription_manager_state

string

Final state after role applied

Choices:

  • "registered" ← (default)

  • "unregistered"

subscription_manager_username

string

Username to use for registration

Username and Password are both required together - role will fail if one is defined and another is not

If Username and Password are defined they will be used over org and Activation key

subscription_manager_validate

boolean / required

Internal role variable used to validate variables

Choices:

  • false

  • true

Entry point noop – Register host with subscription-manager

Synopsis

  • Register host with subscription-manager

  • Role is suitable for containers as well

  • Role expects that ansible_user can sudo to root

  • Role expects that subscription-manager tool is already present

Parameters

Parameter

Comments

subscription_manager_activationkey

string

Activation key to use for registration

Organization and Activation key are both required together - role will fail if one is defined and another is not

subscription_manager_org

string

Organization to use for registration

Organization and Activation key are both required together - role will fail if one is defined and another is not

subscription_manager_password

string

Password to use for registration

Username and Password are both required together - role will fail if one is defined and another is not

If Username and Password are defined they will be used over org and Activation key

subscription_manager_state

string

Final state after role applied

Choices:

  • "registered" ← (default)

  • "unregistered"

subscription_manager_username

string

Username to use for registration

Username and Password are both required together - role will fail if one is defined and another is not

If Username and Password are defined they will be used over org and Activation key

subscription_manager_validate

boolean / required

Internal role variable used to validate variables

Choices:

  • false

  • true