Sha256: 2e761029fcba45290b78e6b772d8e1382021af747e891ae5b0ba1d3a173e1e5c

Contents?: true

Size: 1.06 KB

Versions: 3

Compression:

Stored size: 1.06 KB

Contents

<%#
kind: job_template
name: Update packages by search query - Katello Ansible Default
job_category: Katello
description_format: 'Update package(s) %{Packages search query}'
feature: katello_package_update_by_search
provider_type: Ansible
template_inputs:
- name: Packages search query
  description: Filter criteria for packages to be updated.
  input_type: user
  required: false
- name: Selected update versions
  description: JSON string of selected package versions to be updated, in the format [ nvra ]. Leave blank to upgrade to latest available version.
  input_type: user
  required: false
  value_type: plain
%>
<% package_names = @host.package_names_for_job_template(
  action: 'update',
  search: input('Packages search query'),
  versions: input('Selected update versions')
) -%>
<% if package_names.empty? -%>
<%= render_template('Package Action - Ansible Default', :state => 'latest', :name => '"*"') %>
<% else -%>
---
- hosts: all
  tasks:
    - package:
        name: <%= indent(10) { to_yaml(package_names).gsub(/---/, "") } -%>
        state: latest
<% end -%>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
katello-4.13.1 app/views/foreman/job_templates/update_packages_by_search_query_-_katello_ansible_default.erb
katello-4.13.0 app/views/foreman/job_templates/update_packages_by_search_query_-_katello_ansible_default.erb
katello-4.13.0.rc1 app/views/foreman/job_templates/update_packages_by_search_query_-_katello_ansible_default.erb