Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Ansible playbook for Wazuh agent #1516

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ All notable changes to this project will be documented in this file.
### Changed

- Update AWS credentials actions in GHA workflows to use 'v4' instead of 'v3' ([#1492](https://github.com/wazuh/wazuh-ansible/pull/1492)) \- (Workflows)
- Refactor Ansible playbook for Wazuh agent ([#1492](https://github.com/wazuh/wazuh-ansible/pull/1492))

## [v4.10.2]

Expand Down
17 changes: 17 additions & 0 deletions wazuh-agent.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
- hosts: agents
vars:
wazuh_server_addresses:
- "<Your Wazuh Server IP>"
tasks:
- name: Include wazuh-agent role for Linux hosts
block:
- include_role:
name: ./roles/wazuh-agent
become: yes
become_user: root
when: ansible_os_family != "Windows"

- name: Include wazuh-agent role for Windows hosts
include_role:
name: ./roles/wazuh-agent
when: ansible_os_family == "Windows"
Loading