added installation of wazuh-agent

This commit is contained in:
2024-07-03 11:43:24 +02:00
parent ad30fe74b5
commit 4a2ee7f8ab
3 changed files with 19 additions and 1 deletions

View File

@@ -34,6 +34,8 @@
# - import_tasks: system_setup/microcode.yml # - import_tasks: system_setup/microcode.yml
- import_tasks: system_setup/openssh.yml - import_tasks: system_setup/openssh.yml
- import_tasks: system_setup/scripts.yml - import_tasks: system_setup/scripts.yml
- import_tasks: software/wazuh-agent.yml
when: ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu"]
# Set up the ansible environment # Set up the ansible environment

View File

@@ -0,0 +1,15 @@
- name: install wazuh agent
apt:
deb: https://packages.wazuh.com/4.x/apt/pool/main/w/wazuh-agent/wazuh-agent_4.8.0-1_amd64.deb
environment:
WAZUH_MANAGER: "{{ wazuh_manager }}"
- name: systemctl daemon-reload
systemd:
daemon-reload: yes
- name: Start Wazuh agent
systemd:
name: "wazuh-agent"
state: started
enabled: yes

View File

@@ -1 +1,2 @@
root_home: "{{ lookup('env','HOME') }}" root_home: "{{ lookup('env','HOME') }}"
wazuh_manager: "wazuh.universe.local"