Ansible win_audit_policy_system module not changing the value

Viewed 245

I'm using Ansible to provision a Windows Server 2016. This is the task I'm running:

- name: Ensure 'Audit System Extension' is set to 'Success and Failure'
  win_audit_policy_system:
    subcategory: Security System Extension
    audit_type: success, failure

output:

changed: [10.8.20.177] => {
    "changed": true,
    "current_audit_policy": {
        "security system extension": "success and failure"
    }
}

When I go to check on the machine if the change was really applied I find that it is not. I tried restarting the machine and it still didn't apply. Windows Server 2016 system audit policies shows the following

enter image description here

Any ideas what's going on?

1 Answers
Related