Sha256: f4ad75efe32180fcd2553e5226240d9556fae59e07a3281ad50b890d0513c1e0
Contents?: true
Size: 1.11 KB
Versions: 90
Compression:
Stored size: 1.11 KB
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 %> <% if @host.operatingsystem.family == 'Suse' -%> <% advisories = input(:errata).split(',').join(' ') -%> <%= render_template('Run Command - Ansible Default', :command => "zypper -n install -t patch #{advisories}") -%> <% elsif @host.operatingsystem.family == 'Debian' -%> <% advisories = input(:errata).split(',').map { |e| @host.debs_for_erratum(e) }.join(' ') -%> <%= render_template('Run Command - Ansible Default', :command => "apt-get -o Dpkg::Options::=\"--force-confdef\" -o Dpkg::Options::=\"--force-confold\" -y --only-upgrade install -y #{advisories}") %> <% else -%> <% advisories = input(:errata).split(',').map { |e| "--advisory=#{e}" }.join(' ') -%> <%= render_template('Run Command - Ansible Default', :command => "yum -y update-minimal #{advisories}") -%> <% end -%>
Version data entries
90 entries across 90 versions & 1 rubygems