Splitted wazuh-keystore generation task
This commit is contained in:
parent
5936bf290f
commit
b820347568
@ -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
|
||||||
@ -252,15 +268,6 @@
|
|||||||
- init
|
- init
|
||||||
- config
|
- 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
|
- name: Ossec-authd password
|
||||||
template:
|
template:
|
||||||
src: authd_pass.j2
|
src: authd_pass.j2
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user