Problem:
I am Not able to view openscap report
Expected outcome:
When I run my playbook, the scan report should be visible in foreman
Foreman and Proxy versions:
latest
Other relevant data:
I have created a playbook which run the scanning but I am not able to view the report of the same in the foreman UI. What are the steps required to fulfill this? Am I missing something?
This is my playbook
---
- hosts: vsphere
become: true
roles:
- theforeman.foreman_scap_client
vars:
foreman_scap_client_server: 192.168.1.37
foreman_scap_client_port: 9090
foreman_scap_client_policies: [{
"id": "2",
"hour": "12",
"minute": "1",
"month": "*",
"monthday": "*",
"weekday": "1",
"profile_id": "2",
"content_path": "/var/lib/openscap/content/c125daafac369e94f734e6b4e69f849894f70373eb1133678e219b554338eb2d.xml",
"download_path": "/compliance/policies/2/content/c125daafac369e94f734e6b4e69f849894f70373eb1133678e219b554338eb2d",
"tailoring_path": "",
"tailoring_download_path": ""
}]
tasks:
- name: Execute Scan
shell: oscap xccdf eval --profile xccdf_org.ssgproject.content_profile_stig --report /tmp/newreport.html /usr/share/xml/scap/ssg/content/ssg-almalinux8-ds-1.2.xml
But I am able to see the report if I click “Run Openscap Scan” through foreman.