<%# 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 host automaticaly to continue with the upgrade input_type: user required: true default: "true" options: "true\nfalse" %> --- - hosts: all tasks: - name: Run Leapp Upgrade command: leapp upgrade <% if input('Reboot') == "true" %> - name: Reboot the machine reboot: reboot_timeout: 1800 <% end %>