Open
Description
Expected workflow:
- create tailoring file
- scan system using additional tailoring file
- generate fix
-
Problem occurs during generating fix
oscap xccdf generate fix --template urn:xccdf:fix:script:ansible /tmp/ssg-rhel7-ds-xccdf.results.xml
-
Doesn't generate any output.
Let's try to use --result-id
oscap xccdf generate fix --template urn:xccdf:fix:script:ansible --result-id xccdf_org.open-scap_testresult_xccdf_org.ssgproject.content_profile_pci-dss /tmp/ssg-rhel7-ds-xccdf.results.xml
#Warning: OpenSCAP will now use fallback mode (XSLT) to generate fixes. Some of the functionality might be missing (Text substitution, CPE processing, DataStream support, and tailoring). Please ommit --result-id option to trigger advanced processing.
legacy-fix.xsl has been deprecated!
I/O warning : failed to load external entity "legacy-fixtpl-urn:xccdf:fix:script:ansible.xml"
Fix template 'urn:xccdf:fix:script:ansible' failed to load. Aborting.
Let's try to use --profile-id
Oh, used profile id was from tailoring file and is not available from result file.