cisagov/ansible-role-wazuh-agent

GitHub: cisagov/ansible-role-wazuh-agent

CISA 发布的 Ansible 角色,用于在大规模主机上自动化安装和配置 Wazuh 安全监控代理。

Stars: 0 | Forks: 0

# ansible-role-wazuh-agent [![GitHub 构建状态](https://static.pigsec.cn/wp-content/uploads/repos/2026/06/6a5fe403ea224548.svg)](https://github.com/cisagov/ansible-role-wazuh-agent/actions) [![许可证](https://img.shields.io/github/license/cisagov/ansible-role-wazuh-agent)](https://spdx.org/licenses/) [![CodeQL](https://static.pigsec.cn/wp-content/uploads/repos/2026/06/5cc06519a9224554.svg)](https://github.com/cisagov/ansible-role-wazuh-agent/actions/workflows/codeql-analysis.yml) 这是一个用于安装 [Wazuh agent](https://documentation.wazuh.com/current/installation-guide/wazuh-agent/index.html) 的 Ansible 角色。 ## 要求 无。 ## 角色变量 | 变量 | 描述 | 默认值 | 是否必填 | | -------- | ----------- | ------- | -------- | | wazuh_agent_manager | agent 应连接的 Wazuh manager 的主机名或 IP 地址。 | n/a | 是 | ## 依赖关系 无。 ## 安装 可以通过以下命令安装此角色: ``` ansible-galaxy install --role-file path/to/requirements.yml ``` 其中 `requirements.yml` 的内容如下: ``` --- - name: wazuh_agent src: https://github.com/cisagov/ansible-role-wazuh-agent ``` 并且也可以包含其他角色。 有关通过 YAML 文件安装 Ansible 角色的更多信息, 请参阅 [`ansible-galaxy` 文档](https://docs.ansible.com/ansible/latest/galaxy/user_guide.html#installing-multiple-roles-from-a-file)。 ## 示例 Playbook 以下是在 playbook 中使用它的方法: ``` - hosts: all become: true become_method: sudo tasks: - name: Include Wazuh agent ansible.builtin.include_role: name: wazuh_agent vars: wazuh_agent_manager: example.com ``` ## 许可证 本项目属于全球性的[公有领域](LICENSE)。 本项目在美国属于公有领域,并且 通过 [CC0 1.0 Universal 公有领域 奉献](https://creativecommons.org/publicdomain/zero/1.0/) 放弃了本作品在全球范围内的版权及相关权利。 对本项目的所有贡献都将根据 CC0 奉献发布。提交 pull request 即表示您同意遵守 此版权利益放弃声明。 ## 作者信息 Shane Frasier -
标签:Ansible, Cutter, Wazuh, 主机入侵检测, 系统提示词, 自动化运维