Skip to content

Commit

Permalink
Merge pull request #1516 from wazuh/enhancement/1504-wazuh-agent-play…
Browse files Browse the repository at this point in the history
…book-refactoring

Refactor Ansible playbook for Wazuh agent
  • Loading branch information
teddytpc1 authored Jan 28, 2025
2 parents 2653404 + f31e554 commit e5e590c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
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))

## Deleted

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"

0 comments on commit e5e590c

Please sign in to comment.