Merge pull request #1206 from wazuh/merge-4.8.1-into-4.8.2

Merge `4.8.1` into `4.8.2`
This commit is contained in:
Gonzalo Acuña 2024-02-07 13:04:05 -03:00 committed by GitHub
commit 33b036c90b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 28 additions and 13 deletions

View File

@ -37,6 +37,22 @@
- include_tasks: "Debian.yml" - include_tasks: "Debian.yml"
when: ansible_os_family == "Debian" when: ansible_os_family == "Debian"
- name: Generate the wazuh-keystore (username)
shell: >
/var/ossec/bin/wazuh-keystore -f indexer -k username -v {{ indexer_security_user }}
notify: restart wazuh-manager
tags:
- init
- config
- name: Generate the wazuh-keystore (password)
shell: >
/var/ossec/bin/wazuh-keystore -f indexer -k password -v {{ indexer_security_password }}
notify: restart wazuh-manager
tags:
- init
- config
- name: Install expect - name: Install expect
package: package:
name: expect name: expect

View File

@ -272,8 +272,6 @@
{% endfor %} {% endfor %}
</hosts> </hosts>
<username>{{ indexer_security_user }}</username>
<password>{{ indexer_security_password }}</password>
<ssl> <ssl>
<certificate_authorities> <certificate_authorities>
<ca>{{ filebeat_ssl_dir }}/root-ca.pem</ca> <ca>{{ filebeat_ssl_dir }}/root-ca.pem</ca>

View File

@ -102,7 +102,7 @@
become: yes become: yes
become_user: root become_user: root
run_once: true when: inventory_hostname == ansible_play_hosts[0]
- name: Create custom user - name: Create custom user
uri: uri:
@ -122,5 +122,6 @@
timeout: 4 timeout: 4
when: when:
- indexer_custom_user is defined and indexer_custom_user - indexer_custom_user is defined and indexer_custom_user
- inventory_hostname == ansible_play_hosts[0]