Splitted wazuh-keystore generation task
This commit is contained in:
parent
5936bf290f
commit
b820347568
@ -37,6 +37,22 @@
|
||||
- include_tasks: "Debian.yml"
|
||||
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
|
||||
package:
|
||||
name: expect
|
||||
@ -252,15 +268,6 @@
|
||||
- init
|
||||
- config
|
||||
|
||||
- name: Generate the wazuh-keystore
|
||||
shell: >
|
||||
/var/ossec/bin/wazuh-keystore -f indexer -k username -v {{ indexer_security_user }}
|
||||
/var/ossec/bin/wazuh-keystore -f indexer -k password -v {{ indexer_security_password }}
|
||||
notify: restart wazuh-manager
|
||||
tags:
|
||||
- init
|
||||
- config
|
||||
|
||||
- name: Ossec-authd password
|
||||
template:
|
||||
src: authd_pass.j2
|
||||
|
||||
Loading…
Reference in New Issue
Block a user