Sha256: b38eaa9f188c418755dd5d722897c57beb8e3ed81b92400658f90864f0cc8963

Contents?: true

Size: 1.47 KB

Versions: 32

Compression:

Stored size: 1.47 KB

Contents

<%#
name: Convert to RHEL
snippet: false
template_inputs:
- name: Activation Key
  required: true
  input_type: user
  description: Set the activation key to assign the desired RHEL subscription and
    life cycle environment to the converted machine at the registration step.
  advanced: false
  value_type: resource
  resource_type: Katello::ActivationKey
  hidden_value: false
- name: Restart
  required: true
  input_type: user
  description: Restart the system when it is successfully converted to RHEL to boot
    the new RHEL kernel.
  options: "yes\r\nno"
  advanced: false
  value_type: plain
  resource_type: Katello::ActivationKey
  hidden_value: false
model: JobTemplate
job_category: Convert 2 RHEL
provider_type: Ansible
kind: job_template
%>
---
- hosts: all
  tasks:
    - name: Install convert2rhel
      ansible.builtin.package:
        name: convert2rhel
        state: present
    - name: Prepopulate katello-ca-consumer
      get_url:
        url: <%= subscription_manager_configuration_url(@host) %>
        dest: /usr/share/convert2rhel/subscription-manager/katello-ca-consumer-latest.noarch.rpm
    - name: Start convert2rhel
      command: convert2rhel -y --activationkey "<%= input_resource('Activation Key').name %>" --org "<%= @host.organization.label %>" --keep-rhsm
<%- if input('Restart') == "yes" -%>
    - name: Reboot the machine
      reboot:
        reboot_timeout: 1800
<%- end -%>
    - name: Update system facts
      command: subscription-manager facts --update

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
foreman_ansible-10.4.4 app/views/foreman_ansible/job_templates/convert_to_rhel.erb
foreman_ansible-7.1.8 app/views/foreman_ansible/job_templates/convert_to_rhel.erb
foreman_ansible-10.4.3 app/views/foreman_ansible/job_templates/convert_to_rhel.erb
foreman_ansible-10.4.2 app/views/foreman_ansible/job_templates/convert_to_rhel.erb
foreman_ansible-7.1.7 app/views/foreman_ansible/job_templates/convert_to_rhel.erb
foreman_ansible-11.1.2 app/views/foreman_ansible/job_templates/convert_to_rhel.erb
foreman_ansible-7.1.6 app/views/foreman_ansible/job_templates/convert_to_rhel.erb
foreman_ansible-11.1.1 app/views/foreman_ansible/job_templates/convert_to_rhel.erb
foreman_ansible-10.4.1 app/views/foreman_ansible/job_templates/convert_to_rhel.erb
foreman_ansible-7.1.5 app/views/foreman_ansible/job_templates/convert_to_rhel.erb
foreman_ansible-11.1.0 app/views/foreman_ansible/job_templates/convert_to_rhel.erb
foreman_ansible-10.4.0 app/views/foreman_ansible/job_templates/convert_to_rhel.erb
foreman_ansible-10.3.0 app/views/foreman_ansible/job_templates/convert_to_rhel.erb
foreman_ansible-11.0.0 app/views/foreman_ansible/job_templates/convert_to_rhel.erb
foreman_ansible-10.2.0 app/views/foreman_ansible/job_templates/convert_to_rhel.erb
foreman_ansible-10.1.0 app/views/foreman_ansible/job_templates/convert_to_rhel.erb
foreman_ansible-10.0.1 app/views/foreman_ansible/job_templates/convert_to_rhel.erb
foreman_ansible-10.0.0 app/views/foreman_ansible/job_templates/convert_to_rhel.erb
foreman_ansible-7.1.4 app/views/foreman_ansible/job_templates/convert_to_rhel.erb
foreman_ansible-9.0.1 app/views/foreman_ansible/job_templates/convert_to_rhel.erb