syncing source to git
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
---
|
||||
- name: build openscap report for rhel7
|
||||
hosts: all
|
||||
hosts: web
|
||||
gather_facts: false
|
||||
|
||||
vars:
|
||||
@@ -19,28 +19,23 @@
|
||||
stat:
|
||||
path: "{{ssg_schema}}"
|
||||
|
||||
# - name: create HTML report
|
||||
# command: "oscap xccdf eval --fetch-remote-resources --profile xccdf_org.ssgproject.content_profile_standard --results report.xml --report index.html {{ssg_schema}}"
|
||||
# register: command_result
|
||||
# failed_when: "'Error' in command_result.stderr"
|
||||
|
||||
- name: create HTML report
|
||||
command: "oscap xccdf eval --profile xccdf_org.ssgproject.content_profile_standard --results report.xml --report index.html {{ssg_schema}}"
|
||||
register: command_result
|
||||
failed_when: "'Error' in command_result.stderr"
|
||||
|
||||
- name: Create directory if it does not exist
|
||||
become: yes
|
||||
- name: Create directory if it does falset exist
|
||||
become: true
|
||||
file:
|
||||
path: "{{file_path}}"
|
||||
state: directory
|
||||
|
||||
- name: move files into httpd
|
||||
become: yes
|
||||
become: true
|
||||
copy:
|
||||
src: ./{{item}}
|
||||
dest: "{{file_path}}/{{item}}"
|
||||
remote_src: yes
|
||||
remote_src: true
|
||||
loop:
|
||||
- report.xml
|
||||
- index.html
|
||||
|
||||
Reference in New Issue
Block a user