<%# kind: job_template name: Run upgrade via Leapp job_category: Ansible Playbook description_format: 'Upgrade RHEL 7 host' provider_type: Ansible feature: leapp_upgrade template_inputs: - name: reboot description: reboot the vm automaticaly to continue with the upgrade input_type: user required: false options: "false\ntrue" %> --- - hosts: all tasks: - name: Run Leapp Upgrade command: leapp upgrade <% if input('reboot') == "true" %> - name: Reboot the machine reboot: reboot_timeout: 1800 <% end %>