Override default Wazuh API credentials in the production-ready playbook to target manager ip

This commit is contained in:
Jesus Garcia 2026-03-12 11:57:00 -05:00
parent a70d072578
commit 82b5771ff6
No known key found for this signature in database
GPG Key ID: 8461CA78326C96C9
2 changed files with 12 additions and 0 deletions

View File

@ -229,6 +229,12 @@ The hereunder example playbook uses the `wazuh-ansible` role to provision a prod
vars: vars:
indexer_network_host: "{{ hostvars.wi1.private_ip }}" indexer_network_host: "{{ hostvars.wi1.private_ip }}"
dashboard_node_name: node-6 dashboard_node_name: node-6
wazuh_api_credentials:
- id: default
url: https://{{ hostvars.manager.private_ip }}
port: 55000
username: "wazuh-wui"
password: "wazuh-wui"
ansible_shell_allow_world_readable_temp: true ansible_shell_allow_world_readable_temp: true
``` ```

View File

@ -164,4 +164,10 @@
- "{{ hostvars.wi2.private_ip }}" - "{{ hostvars.wi2.private_ip }}"
- "{{ hostvars.wi3.private_ip }}" - "{{ hostvars.wi3.private_ip }}"
dashboard_node_name: node-6 dashboard_node_name: node-6
wazuh_api_credentials:
- id: default
url: https://{{ hostvars.manager.private_ip }}
port: 55000
username: "wazuh-wui"
password: "wazuh-wui"
ansible_shell_allow_world_readable_temp: true ansible_shell_allow_world_readable_temp: true