Adding restart

This commit is contained in:
kris 2025-01-23 11:26:58 +00:00
parent abea8bdd77
commit 77fee2919d

16
wazuh_restart.yml Normal file
View File

@ -0,0 +1,16 @@
---
- hosts: all
become: yes
vars:
wazuh_version: 4.9.2
wazuh_manager_ip: '10.75.50.5'
wazuh_agent_group: 'Infrastructure'
wazuh_deb_filename: "wazuh-agent_{{ wazuh_version }}-1_amd64.deb"
wazuh_deb_url: "https://packages.wazuh.com/4.x/apt/pool/main/w/wazuh-agent/{{ wazuh_deb_filename }}"
tasks:
- name: Restart Wazuh Agent
ansible.builtin.service:
name: wazuh-agent
state: restarted
enabled: yes