21 lines
515 B
YAML
21 lines
515 B
YAML
---
|
|
|
|
- name: Audit_Only | Create local Directories for hosts
|
|
when: fetch_audit_files
|
|
ansible.builtin.file:
|
|
mode: 'u+x,go-w'
|
|
path: "{{ audit_capture_files_dir }}/{{ inventory_hostname }}"
|
|
recurse: true
|
|
state: directory
|
|
delegate_to: localhost
|
|
become: false
|
|
|
|
- name: Audit_only | Show Audit Summary
|
|
when: audit_only
|
|
ansible.builtin.debug:
|
|
msg: "{{ audit_results.split('\n') }}"
|
|
|
|
- name: Audit_only | Stop Playbook Audit Only selected
|
|
when: audit_only
|
|
ansible.builtin.meta: end_play
|