Skip to content

Commit

Permalink
Add Ansible playbook for deploying Wazuh agent on Linux, MacOs and Wi…
Browse files Browse the repository at this point in the history
…ndows hosts
  • Loading branch information
YisDav committed Jan 20, 2025
1 parent b80c1c1 commit febe7f6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions wazuh-agent.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
- hosts: agents
vars:
wazuh_server_addresses:
- "10.0.0.254"
- "10.0.0.255"
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 febe7f6

Please sign in to comment.