mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
cf6f6d09db
* new windows module win_audit_policy_system * removed the backup/restore functionality adjusted to use run-command rather than running the command directly adjusted testing appropriately for the above changes * fixed issue with variable naming in testing removed .psm1 from requires fixed copyright * Updated audit_type to list and added appropriate error handling Updated testing accordingly Fixed up documentation
25 lines
792 B
YAML
25 lines
792 B
YAML
#turn off so then we can test changes occur on enable. Turning off for object access also
|
|
#covers our subcategory test for file system
|
|
- name: turn off auditing for category
|
|
win_audit_policy_system:
|
|
category: "{{ category_name }}"
|
|
audit_type: none
|
|
|
|
- name: turn off auditing for subcategory
|
|
win_audit_policy_system:
|
|
subcategory: "{{ subcategory_name }}"
|
|
audit_type: none
|
|
|
|
- block:
|
|
- include_tasks: add.yml
|
|
- include_tasks: remove.yml
|
|
always:
|
|
- name: CLEANUP turn "{{ category_name }}" back to no auditing
|
|
win_audit_policy_system:
|
|
category: "{{ category_name }}"
|
|
audit_type: none
|
|
|
|
- name: CLEANUP turn "{{ subcategory_name }}" back to no auditing
|
|
win_audit_policy_system:
|
|
subcategory: "{{ subcategory_name }}"
|
|
audit_type: none
|