wazuh + doc
This commit is contained in:
25
wazuh/provision/setup-wazuh-cli.yml
Normal file
25
wazuh/provision/setup-wazuh-cli.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
- hosts: all
|
||||
become: true
|
||||
tasks:
|
||||
- name: Recup clefs depot
|
||||
ansible.builtin.shell: curl -s https://packages.wazuh.com/key/GPG-KEY-WAZUH | gpg --no-default-keyring --keyring gnupg-ring:/usr/share/keyrings/wazuh.gpg --import && chmod 644 /usr/share/keyrings/wazuh.gpg
|
||||
|
||||
- name: Ajoute depot
|
||||
ansible.builtin.shell: echo "deb [signed-by=/usr/share/keyrings/wazuh.gpg] https://packages.wazuh.com/4.x/apt/ stable main" | tee -a /etc/apt/sources.list.d/wazuh.list
|
||||
|
||||
- name: Update apt
|
||||
ansible.builtin.apt:
|
||||
update_cache: yes
|
||||
|
||||
- name: Installation wazuh-agent et liaison wazuh-server
|
||||
ansible.builtin.shell: "WAZUH_MANAGER={{ srv_ip }} apt-get install wazuh-agent"
|
||||
|
||||
- name: Relance wazuh-agent
|
||||
ansible.builtin.systemd:
|
||||
name: wazuh-agent
|
||||
state: restarted
|
||||
enabled: true
|
||||
daemon_reload: true
|
||||
|
||||
|
||||
14
wazuh/provision/setup-wazuh.yml
Normal file
14
wazuh/provision/setup-wazuh.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
- hosts: all
|
||||
become: true
|
||||
tasks:
|
||||
- name: Arrete service unattended-upgrades
|
||||
ansible.builtin.service:
|
||||
name: unattended-upgrades
|
||||
state: stopped
|
||||
|
||||
- name: Recup script install et lance wazuh-installl.sh en mode AIO - 15 min
|
||||
ansible.builtin.shell:
|
||||
cmd: curl -s -O https://packages.wazuh.com/4.10/wazuh-install.sh && bash wazuh-install.sh -a
|
||||
|
||||
|
||||
Reference in New Issue
Block a user