Compare commits

..

2 Commits

Author SHA1 Message Date
jaydee
55e943bd24 initial 2024-12-19 15:58:29 +01:00
jaydee
ac002ab0af initial 2024-12-19 09:13:29 +01:00
5 changed files with 17 additions and 8 deletions

View File

@ -15,3 +15,5 @@
tags: ldap_client
- role: wazuh-agent
tags: wazuh-agent
- role: mqtt-srv
tags: mqtt-srv

View File

@ -1,4 +1,7 @@
- block:
- name: include vault
ansible.builtin.include_vars:
file: jaydee.yml
- name: Install ldap packages
ansible.builtin.apt:
name:

View File

@ -1,7 +1,7 @@
- block:
- name: include vault
ansible.builtin.include_vars:
file: ../jaydee.yml
file: jaydee.yml
- name: Delete content & directory
ansible.builtin.file:
state: absent

View File

@ -1,15 +1,17 @@
- block:
- name: Get keys
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: Add repo
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: Install docker
- name: Update cache
ansible.builtin.apt:
update_cache: true
- name: Add repo
ansible.builtin.shell: WAZUH_MANAGER="192.168.77.101" apt-get install wazuh-agent
- name: Instal wazuh
ansible.builtin.apt:
name: wazuh-agent
environment:
WAZUH_MANAGER: 'm-server.home.lan'
WAZUH_AGENT_NAME: "{{ inventory_hostname}}"
- name: Restart wazuh service
ansible.builtin.service:
name: wazuh-agent

View File

@ -23,3 +23,5 @@
tags: ssh_banner
- name: omv_backup
tags: omv_backup
- name: wazuh-agent
tags: wazuh-agent