Sha256: 22ec65844165d79579c810aa88d9f285ac1be90a65786c08693fd922e0eb5eea

Contents?: true

Size: 817 Bytes

Versions: 8

Compression:

Stored size: 817 Bytes

Contents

<%#
kind: job_template
name: Install packages by search query - Katello Ansible Default
job_category: Katello via Ansible
description_format: 'Install package(s) %{Package search query}'
feature: katello_package_install_by_search
provider_type: Ansible
template_inputs:
- name: Package search query
  description: Filter criteria for packages to be installed. IMPORTANT- If left blank, the job will attempt to install all possible packages.
  input_type: user
  required: false
%>
<% package_names = @host.package_names_for_job_template(
  action: 'install',
  search: input('Package search query')
) -%>
---
- hosts: all
  tasks:
    - package:
<% if package_names.empty? -%>
        name: []
<% else -%>
        name: <%= indent(10) { to_yaml(package_names).gsub(/---/, "") } -%>
        state: present
<% end -%>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
katello-4.15.0.rc2 app/views/foreman/job_templates/install_packages_by_search_query_-_katello_ansible_default.erb
katello-4.15.0.rc1 app/views/foreman/job_templates/install_packages_by_search_query_-_katello_ansible_default.erb
katello-4.14.1 app/views/foreman/job_templates/install_packages_by_search_query_-_katello_ansible_default.erb
katello-4.14.0 app/views/foreman/job_templates/install_packages_by_search_query_-_katello_ansible_default.erb
katello-4.14.0.rc3 app/views/foreman/job_templates/install_packages_by_search_query_-_katello_ansible_default.erb
katello-4.14.0.rc2 app/views/foreman/job_templates/install_packages_by_search_query_-_katello_ansible_default.erb
katello-4.14.0.rc1.1 app/views/foreman/job_templates/install_packages_by_search_query_-_katello_ansible_default.erb
katello-4.14.0.rc1 app/views/foreman/job_templates/install_packages_by_search_query_-_katello_ansible_default.erb