Sha256: 07279dd4fea03abb7f30ed87d5dffcd46f3889a5eb8bf6e24c40ec83aa9d0740
Contents?: true
Size: 901 Bytes
Versions: 8
Compression:
Stored size: 901 Bytes
Contents
<%# name: Install Errata - Katello Ansible Default snippet: false model: JobTemplate job_category: Katello via Ansible description_format: Install errata %{errata} template_inputs: - name: errata required: true input_type: user description: A comma separated list of errata to install advanced: false provider_type: Ansible kind: job_template %> <%= snippet_if_exists(template_name + " custom pre") %> <% if @host.operatingsystem.family == 'Suse' -%> <% advisories = input(:errata).split(',').join(' ') -%> <%= render_template('Run Command - Ansible Default', :command => "zypper -n install -t patch #{advisories}") %> <% else -%> <% advisories = input(:errata).split(',').map { |e| "--advisory=#{e}" }.join(' ') -%> <%= render_template('Run Command - Ansible Default', :command => "yum -y update-minimal #{advisories}") %> <% end -%> <%= snippet_if_exists(template_name + " custom post") %>
Version data entries
8 entries across 8 versions & 1 rubygems