redhat.satellite.convert2rhel

This role creates a basic configuration for everything needed to register and convert CentOS clients to Red Hat Enterprise Linux.

First step is upload of manifest and synchronization of RHEL repositories. For more detail see content_rhel Role.

Then the role creates Convert2RHEL products & repositories (and synchronizes them), activation keys and host groups for each OS.

If simple content access is disabled, subscriptions and repositories for RHEL activation keys must be added manually.

Role Variables

This role supports the Common Role Variables and Content RHEL variables

  • satellite_convert2rhel_manage_subscription: Run content_rhel Role role, default: true

  • satellite_convert2rhel_lifecycle_env: Lifecycle environment for activation keys, default: Library.

  • satellite_convert2rhel_content_view: Content view for activation keys, default: Default Organization View.

  • satellite_convert2rhel_enable_oracle7: Create data for Oracle Linux 7 conversion, default: false

Example Playbooks

Convert2RHEL

- hosts: localhost
  roles:
    - role: redhat.satellite.convert2rhel
      vars:
        satellite_server_url: "https://satellite.example.com"
        satellite_username: "admin"
        satellite_password: "changeme"
        satellite_organization: "Default Organization"
        satellite_manifest_path: "~/manifest.zip"
        satellite_content_rhel_enable_rhel7: true
        satellite_content_rhel_enable_rhel8: true
        satellite_content_rhel_rhel8_releasever: 8.5
        satellite_content_rhel_wait_for_syncs: false
        satellite_convert2rhel_lifecycle_env: "Library"
        satellite_convert2rhel_content_view: "Default Organization View"
        satellite_convert2rhel_enable_oracle7: true