Sha256: 93fa194d9f0a58d53e58f945f10f37d8a303a452f0f99b85ea02db34fceb46d1

Contents?: true

Size: 674 Bytes

Versions: 9

Compression:

Stored size: 674 Bytes

Contents

<%#
kind: job_template
name: Remove packages by search query - Katello Ansible Default
job_category: Katello
description_format: 'Remove package(s) %{Packages search query}'
feature: katello_package_remove_by_search
provider_type: Ansible
template_inputs:
- name: Packages search query
  description: Filter criteria for packages to be removed.
  input_type: user
  required: false
%>
<% package_names = @host.package_names_for_job_template(
  action: 'remove',
  search: input('Packages search query')
) -%>
---
- hosts: all
  tasks:
    - package:
        name: 
<% package_names.each do |package_name| -%>
          - <%= package_name %>
<% end -%>
        state: absent

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
katello-4.13.1 app/views/foreman/job_templates/remove_packages_by_search_query_-_katello_ansible_default.erb
katello-4.13.0 app/views/foreman/job_templates/remove_packages_by_search_query_-_katello_ansible_default.erb
katello-4.12.1 app/views/foreman/job_templates/remove_packages_by_search_query_-_katello_ansible_default.erb
katello-4.13.0.rc1 app/views/foreman/job_templates/remove_packages_by_search_query_-_katello_ansible_default.erb
katello-4.12.0 app/views/foreman/job_templates/remove_packages_by_search_query_-_katello_ansible_default.erb
katello-4.12.0.rc3 app/views/foreman/job_templates/remove_packages_by_search_query_-_katello_ansible_default.erb
katello-4.12.0.rc2 app/views/foreman/job_templates/remove_packages_by_search_query_-_katello_ansible_default.erb
katello-4.12.0.rc1 app/views/foreman/job_templates/remove_packages_by_search_query_-_katello_ansible_default.erb
katello-4.11.1 app/views/foreman/job_templates/remove_packages_by_search_query_-_katello_ansible_default.erb