This roll installs opensearch as a single-node-instance. It is a modified fork of the official opensearch ansible role. Checkout the CHANGELOG.txt for all changes.
Please note that this modified version is not meant for production use!
- Ansible 2.9+
- Java 8
This role was tested on Ubuntu 22.04. Other linux distributions might work as well.
The original role sets the hostname and /etc/hosts
. This fork does not set the hostname
and requires another role for that like https://github.com/ait-testbed/atb-ansible-hostname.
# Start service after installation and run tests
os_test: True
os_version: "2.13.0"
os_dashboards_version: "2.13.0"
os_dashboards_user: opensearch-dashboards
os_download_url: https://artifacts.opensearch.org/releases/bundle/opensearch
os_user: opensearch
os_cluster_name: os-cluster
admin_password: "myStrongPassword@123!"
kibanaserver_password: "Test@6789"
logstash_password: "Test@456"
domain_name: aecid-testbed.local
opensearch_hostname: search.aecid-testbed.local
opensearch_hosts:
search.aecid-testbed.local:
ip: 192.168.100.11
- name: Deploy opensearch
hosts: opensearch
remote_user: ubuntu
become: true
vars:
os_version: "2.13.0"
os_dashboards_version: "2.13.0"
os_dashboards_user: opensearch-dashboards
os_download_url: https://artifacts.opensearch.org/releases/bundle/opensearch
os_user: opensearch
os_cluster_name: os-cluster
admin_password: "myStrongPassword@123!"
kibanaserver_password: "Test@6789"
logstash_password: "Test@456"
domain_name: aecid-testbed.local
opensearch_hostname: search.aecid-testbed.local
opensearch_hosts:
search.aecid-testbed.local:
ip: 192.168.100.11
roles:
- role: hostname
vars:
hostname: search
hostname_ip: 192.168.100.11
hostname_fqdn: search.aecid-testbed.local
- role: opensearch
This project is licensed under the Apache v2.0 License.
Copyright OpenSearch Contributors. See NOTICE for details.