【问题标题】:Ansible win_audit_policy_system module not changing the valueAnsible win_audit_policy_system 模块不改变值
【发布时间】:2019-04-07 00:52:33
【问题描述】:

我正在使用 Ansible 配置 Windows Server 2016。这是我正在运行的任务:

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

输出:

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

当我去检查机器是否真的应用了更改时,我发现它不是。我尝试重新启动机器,但它仍然不适用。 Windows Server 2016 系统审核策略显示如下

有什么想法吗?

【问题讨论】:

    标签: ansible ansible-2.x audit winrm ansible-facts


    【解决方案1】:

    此命令可能会给出预期的结果。

    auditpol.exe /get /category:*
    

    Microsoft 在下面的文章中提到了这方面的内容。 https://support.microsoft.com/en-us/help/2573113/auditpol-and-local-security-policy-results-may-differ

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-01-18
      • 1970-01-01
      • 1970-01-01
      • 2022-11-07
      • 1970-01-01
      • 2019-01-20
      • 1970-01-01
      • 2018-04-23
      相关资源
      最近更新 更多