Wazuh dashboard

This role deploys the Wazuh dashboard. You can customize the installation with the following variables:

  • indexer_network_host: This defines the Elasticsearch node IP address (default:

  • indexer_http_port: This defines the Elasticsearch node listening port (default: 9200).

  • dashboard_server_host: This defines the Wazuh dashboard listening node address (default:

To use the role in a playbook, a YAML file wazuh-dashboard.yml can be created with the contents below:

- hosts: dashboard
    - wazuh-dashboard

Custom variable definitions for different environments can be set. For example:

  • For a production environment, the variables can be saved in vars-production.yml:

    indexer_network_host: ''
  • For a development environment, the variables can be saved in vars-development.yml:

    indexer_network_host: ''

To run the playbook for a specific environment, the command below is run:

$ ansible-playbook wazuh-dashboard.yml -e@vars-production.yml

The example above will install the Wazuh dashboard and configure as the Indexer node.

Please review the variable references section to see all variables available for this role.