Sha256: d156a77199a28435fef6bf5fa48134b3e4c5ae29f67ab4e044edbd2c7bf1975b

Contents?: true

Size: 531 Bytes

Versions: 58

Compression:

Stored size: 531 Bytes

Contents

<%#
name: Run OpenSCAP scans - Ansible Default
job_category: OpenSCAP Ansible Commands
description_format: Run scan for all OpenSCAP policies on given hosts
snippet: false
provider_type: Ansible
kind: job_template
model: JobTemplate
%>

<% raise "Create and assign a policy to this host before proceeding" if @host.policies_enc_raw.empty? -%>
---
- hosts: all
  tasks:
<% @host.policies_enc_raw.each do |policy| -%>
    - shell: /usr/bin/foreman_scap_client <%= policy['id'] %>
      register: out
    - debug: var=out
<% end -%>

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
foreman_ansible-12.0.5 app/views/foreman_ansible/job_templates/run_openscap_scans_-_ansible_default.erb
foreman_ansible-10.4.3 app/views/foreman_ansible/job_templates/run_openscap_scans_-_ansible_default.erb
foreman_ansible-12.0.4 app/views/foreman_ansible/job_templates/run_openscap_scans_-_ansible_default.erb
foreman_ansible-10.4.2 app/views/foreman_ansible/job_templates/run_openscap_scans_-_ansible_default.erb
foreman_ansible-12.0.3 app/views/foreman_ansible/job_templates/run_openscap_scans_-_ansible_default.erb
foreman_ansible-12.0.2 app/views/foreman_ansible/job_templates/run_openscap_scans_-_ansible_default.erb
foreman_ansible-12.0.1 app/views/foreman_ansible/job_templates/run_openscap_scans_-_ansible_default.erb
foreman_ansible-12.0.0 app/views/foreman_ansible/job_templates/run_openscap_scans_-_ansible_default.erb
foreman_ansible-11.2.1 app/views/foreman_ansible/job_templates/run_openscap_scans_-_ansible_default.erb
foreman_ansible-7.1.7 app/views/foreman_ansible/job_templates/run_openscap_scans_-_ansible_default.erb
foreman_ansible-11.2.0 app/views/foreman_ansible/job_templates/run_openscap_scans_-_ansible_default.erb
foreman_ansible-11.1.2 app/views/foreman_ansible/job_templates/run_openscap_scans_-_ansible_default.erb
foreman_ansible-7.1.6 app/views/foreman_ansible/job_templates/run_openscap_scans_-_ansible_default.erb
foreman_ansible-11.1.1 app/views/foreman_ansible/job_templates/run_openscap_scans_-_ansible_default.erb
foreman_ansible-10.4.1 app/views/foreman_ansible/job_templates/run_openscap_scans_-_ansible_default.erb
foreman_ansible-7.1.5 app/views/foreman_ansible/job_templates/run_openscap_scans_-_ansible_default.erb
foreman_ansible-11.1.0 app/views/foreman_ansible/job_templates/run_openscap_scans_-_ansible_default.erb
foreman_ansible-10.4.0 app/views/foreman_ansible/job_templates/run_openscap_scans_-_ansible_default.erb
foreman_ansible-10.3.0 app/views/foreman_ansible/job_templates/run_openscap_scans_-_ansible_default.erb
foreman_ansible-11.0.0 app/views/foreman_ansible/job_templates/run_openscap_scans_-_ansible_default.erb