Trying to use ansible on windows server 2016. winRM connection works and other modules run perfectly fine.
simple playbook and run win_audit_policy_system to change the values.
- name: “Ensure ‘Audit Application Group Management’ is set to ‘Success and Failure’” win_audit_policy_system: subcategory: Application Group Management audit_type: success, failure
- name: “Ensure ‘Audit Computer Account Management’ is set to ‘Success and Failure’” win_audit_policy_system: subcategory: Computer Account Management audit_type: success, failure
When I go to check on the Machine, the state of the policy does not change. I already restarted the machine and run the gpupdate /force. Any ideas?
If I run with subcategory options,the value was not changed in GUI.
name: “17.2.1,CCE-38329-9 | Ensure ‘Audit Application Group Management’ is set to ‘Success and Failure’”
win_audit_policy_system:
subcategory: Application Group Management
audit_type: success, failure
name: “17.2.2,CCE-38004-8 | Ensure ‘Audit Computer Account Management’ is set to ‘Success and Failure’”
win_audit_policy_system:
subcategory: Computer Account Management
audit_type: success, failure