Compare commits

...

4 Commits

Author SHA1 Message Date
jaydee
0f72226de7 initial 2024-12-15 23:04:54 +01:00
jaydee
d128269757 initial 2024-12-15 22:58:35 +01:00
jaydee
953bff736d initial 2024-12-15 22:54:29 +01:00
jaydee
add7afa00b initial 2024-12-15 22:54:16 +01:00
6 changed files with 49 additions and 14 deletions

View File

@ -13,3 +13,5 @@
tags: autofs_client tags: autofs_client
- role: ldap_client - role: ldap_client
tags: ldap_client tags: ldap_client
- role: wazuh-agent
tags: wazuh-agent

View File

@ -33,3 +33,6 @@
name: ssh.service name: ssh.service
state: restarted state: restarted
become: true become: true

View File

@ -0,0 +1,19 @@
- 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
ansible.builtin.apt:
update_cache: true
- name: Add repo
ansible.builtin.shell: WAZUH_MANAGER="192.168.77.101" apt-get install wazuh-agent
- name: Restart wazuh service
ansible.builtin.service:
name: wazuh-agent
state: restarted
enabled: true
become: true

View File

@ -0,0 +1 @@
ZABBIX_SERVER: "zabbix.home.lan"

View File

@ -1,13 +1,23 @@
--- ---
- hosts: servers - hosts: servers
roles: roles:
- common - name: common
- wake_on_lan tags: common
- matter-server - name: wake_on_lan
- docker tags: wake_on_lan
- timeshift - name: matter-server
- monitoring tags: matter-server
- zabbix-agent - name: docker
- autofs_client tags: docker
- ldap_client - name: timeshift
- ssh_banner tags: timeshift
- name: monitoring
tags: monitoring
- name: zabbix-agent
tags: zabbix-agent
- name: autofs_client
tags: autofs_client
- name: ldap_client
tags: ldap_client
- name: ssh_banner
tags: ssh_banner

View File

@ -1,4 +1,4 @@
--- ---
- hosts: datacenter - hosts: datacenter
roles: roles:
- omv_backup - wazuh-agent