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 f959f40
Showing 1 changed file with 17 additions and 0 deletions.
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 f959f40

Please sign in to comment.