[Open-scap] oscap xccdf generate fix --template urn:xccdf:fix:script:ansible working?
Eric Martin
eric.martin at itmartin.com
Mon Jan 23 15:57:03 UTC 2017
Hello,
I'm new to OpenSCAP and I'm using ansible so I'm trying to generate an
ansible playbook using:
# oscap xccdf generate fix --template urn:xccdf:fix:script:ansible
--profile xccdf_org.ssgproject.content_profile_C2S --output ./playbook.yml
/usr/share/xml/scap/ssg/content/ssg-rhel7-ds.xml
# ll playbook.yml*
-rwx------. 1 root root 0 Jan 23 16:38 playbook.yml
#
The generated file is empty.
If I'm trying:
# oscap xccdf generate fix --template urn:xccdf:fix:script:sh --profile
xccdf_org.ssgproject.content_profile_C2S --output ./playbook.sh
/usr/share/xml/scap/ssg/content/ssg-rhel7-ds.xml
# ll playbook.sh*
-rwx------. 1 root root 426157 Jan 23 16:38 playbook.sh
#
Then the shell script is generated.
My question is:
Does the urn:xccdf:fix:script:ansible option working?
I did see that someone managed to get it working:
https://blog-zbynek.rhcloud.com/2016/09/12/ssg-openscap-and-ansible/
Thanks,
Eric Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/open-scap-list/attachments/20170123/17c1a2f7/attachment.htm>
More information about the Open-scap-list
mailing list