mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-24 14:23:05 +00:00
enabled fetch report and updated title
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
27dc592c12
commit
908ac57db7
1 changed files with 9 additions and 11 deletions
|
|
@ -1,19 +1,17 @@
|
||||||
---
|
---
|
||||||
- name: Audit_Only | Create local Directories for hosts
|
|
||||||
when: fetch_audit_files
|
- name: Audit_only | Fetch audit files
|
||||||
ansible.builtin.file:
|
when:
|
||||||
mode: 'u+x,go-w'
|
- fetch_audit_output
|
||||||
path: "{{ audit_capture_files_dir }}/{{ inventory_hostname }}"
|
- audit_only
|
||||||
recurse: true
|
ansible.builtin.import_tasks:
|
||||||
state: directory
|
file: fetch_audit_output.yml
|
||||||
delegate_to: localhost
|
|
||||||
become: false
|
|
||||||
|
|
||||||
- name: Audit_only | Show Audit Summary
|
- name: Audit_only | Show Audit Summary
|
||||||
when: audit_only
|
when: audit_only
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
msg: "{{ audit_results.split('\n') }}"
|
msg: "{{ audit_results.split('\n') }}"
|
||||||
|
|
||||||
- name: Audit_only | Stop Playbook Audit Only selected
|
- name: Audit_only | Stop task for host as audit_only selected
|
||||||
when: audit_only
|
when: audit_only
|
||||||
ansible.builtin.meta: end_play
|
ansible.builtin.meta: end_host
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue