mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-01-23 20:39:26 +00:00
Compare commits
No commits in common. "55e943bd24b0314c8899dd768db75dd40c8fc52e" and "5259f056650ba2ca83cb61cd07ae042fb10da732" have entirely different histories.
55e943bd24
...
5259f05665
@ -14,6 +14,4 @@
|
|||||||
- role: ldap_client
|
- role: ldap_client
|
||||||
tags: ldap_client
|
tags: ldap_client
|
||||||
- role: wazuh-agent
|
- role: wazuh-agent
|
||||||
tags: wazuh-agent
|
tags: wazuh-agent
|
||||||
- role: mqtt-srv
|
|
||||||
tags: mqtt-srv
|
|
@ -1,7 +1,4 @@
|
|||||||
- block:
|
- block:
|
||||||
- name: include vault
|
|
||||||
ansible.builtin.include_vars:
|
|
||||||
file: jaydee.yml
|
|
||||||
- name: Install ldap packages
|
- name: Install ldap packages
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
name:
|
name:
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
- block:
|
- block:
|
||||||
- name: include vault
|
- name: include vault
|
||||||
ansible.builtin.include_vars:
|
ansible.builtin.include_vars:
|
||||||
file: jaydee.yml
|
file: ../jaydee.yml
|
||||||
- name: Delete content & directory
|
- name: Delete content & directory
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
state: absent
|
state: absent
|
||||||
|
@ -1,17 +1,15 @@
|
|||||||
- block:
|
- block:
|
||||||
- name: Get keys
|
- 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
|
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
|
- 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
|
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 cache
|
- name: Install docker
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
update_cache: true
|
update_cache: true
|
||||||
- name: Instal wazuh
|
- name: Add repo
|
||||||
ansible.builtin.apt:
|
ansible.builtin.shell: WAZUH_MANAGER="192.168.77.101" apt-get install wazuh-agent
|
||||||
name: wazuh-agent
|
|
||||||
environment:
|
|
||||||
WAZUH_MANAGER: 'm-server.home.lan'
|
|
||||||
WAZUH_AGENT_NAME: "{{ inventory_hostname}}"
|
|
||||||
- name: Restart wazuh service
|
- name: Restart wazuh service
|
||||||
ansible.builtin.service:
|
ansible.builtin.service:
|
||||||
name: wazuh-agent
|
name: wazuh-agent
|
||||||
|
@ -22,6 +22,4 @@
|
|||||||
- name: ssh_banner
|
- name: ssh_banner
|
||||||
tags: ssh_banner
|
tags: ssh_banner
|
||||||
- name: omv_backup
|
- name: omv_backup
|
||||||
tags: omv_backup
|
tags: omv_backup
|
||||||
- name: wazuh-agent
|
|
||||||
tags: wazuh-agent
|
|
Loading…
x
Reference in New Issue
Block a user