summaryrefslogtreecommitdiff
path: root/test/integration/targets/win_audit_policy_system/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/win_audit_policy_system/tasks/main.yml')
-rw-r--r--test/integration/targets/win_audit_policy_system/tasks/main.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/integration/targets/win_audit_policy_system/tasks/main.yml b/test/integration/targets/win_audit_policy_system/tasks/main.yml
new file mode 100644
index 0000000000..c2e55accf5
--- /dev/null
+++ b/test/integration/targets/win_audit_policy_system/tasks/main.yml
@@ -0,0 +1,25 @@
+#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