{"id":13753358,"url":"https://github.com/geerlingguy/ansible-role-elasticsearch","last_synced_at":"2025-04-05T06:10:03.011Z","repository":{"id":19970473,"uuid":"23237486","full_name":"geerlingguy/ansible-role-elasticsearch","owner":"geerlingguy","description":"Ansible Role - Elasticsearch","archived":false,"fork":false,"pushed_at":"2024-07-16T19:21:28.000Z","size":83,"stargazers_count":185,"open_issues_count":5,"forks_count":208,"subscribers_count":13,"default_branch":"master","last_synced_at":"2024-10-10T04:06:17.863Z","etag":null,"topics":["ansible","elasticsearch","elk","java","logging","role"],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/geerlingguy/elasticsearch/","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/geerlingguy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"geerlingguy","patreon":"geerlingguy"}},"created_at":"2014-08-22T19:38:34.000Z","updated_at":"2024-10-01T15:25:40.000Z","dependencies_parsed_at":"2024-08-03T09:15:52.874Z","dependency_job_id":null,"html_url":"https://github.com/geerlingguy/ansible-role-elasticsearch","commit_stats":null,"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2Fansible-role-elasticsearch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2Fansible-role-elasticsearch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2Fansible-role-elasticsearch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geerlingguy%2Fansible-role-elasticsearch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geerlingguy","download_url":"https://codeload.github.com/geerlingguy/ansible-role-elasticsearch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247294541,"owners_count":20915340,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","elasticsearch","elk","java","logging","role"],"created_at":"2024-08-03T09:01:20.914Z","updated_at":"2025-04-05T06:10:02.985Z","avatar_url":"https://github.com/geerlingguy.png","language":"Jinja","funding_links":["https://github.com/sponsors/geerlingguy","https://patreon.com/geerlingguy"],"categories":["role","Jinja"],"sub_categories":[],"readme":"# Ansible Role: Elasticsearch\n\n[![CI](https://github.com/geerlingguy/ansible-role-elasticsearch/actions/workflows/ci.yml/badge.svg)](https://github.com/geerlingguy/ansible-role-elasticsearch/actions/workflows/ci.yml)\n\nAn Ansible Role that installs Elasticsearch on RedHat/CentOS or Debian/Ubuntu.\n\n## Requirements\n\nRequires at least Java 8. You can use the [`geerlingguy.java`](https://github.com/geerlingguy/ansible-role-java) to easilly install Java.\n\n## Role Variables\n\nAvailable variables are listed below, along with default values (see `defaults/main.yml` for default role variables).\n\n    elasticsearch_version: '7.x'\n\nThe major version to use when installing Elasticsearch.\n\n    elasticsearch_package: elasticsearch\n\nIf you want to follow the latest release in the `elasticsearch_version` major release cycle, keep the default here. Otherwise you can add `-7.13.2` (for RHEL-based systems) or `=7.13.2` (for Debian-based systems) to lock in a specific version, e.g. `7.13.2`.\n\n    elasticsearch_package_state: present\n\nThe `elasticsearch` package state; set to `latest` to upgrade or change versions.\n\n    elasticsearch_service_state: started\n    elasticsearch_service_enabled: true\n\nControls the Elasticsearch service options.\n\n    elasticsearch_network_host: localhost\n\nNetwork host to listen for incoming connections on. By default we only listen on the localhost interface. Change this to the IP address to listen on a specific interface, or `\"0.0.0.0\"` to listen on all interfaces.\n\nWhen listening on multiple interfaces, if you're setting up a single Elasticsearch server (not a cluster), you should also add `discovery.type: single-node` to `elasticsearch_extra_options`.\n\n    elasticsearch_http_port: 9200\n\nThe port to listen for HTTP connections on.\n\n    elasticsearch_heap_size_min: 1g\n\nThe minimum jvm heap size.\n\n    elasticsearch_heap_size_max: 2g\n\nThe maximum jvm heap size.\n\n    elasticsearch_extra_options: ''\n\nA placeholder for arbitrary configuration options not exposed by the role. This will be appended as-is to the end of the `elasticsearch.yml` file, as long as your variable preserves formatting with a `|`. For example:\n\n```yaml\nelasticsearch_extra_options: |  # Dont forget the pipe!\n  some.option: true\n  another.option: false\n```\n\n## Dependencies\n\nNone.\n\n## Example Playbook\n\n    - hosts: search\n      roles:\n        - geerlingguy.java\n        - geerlingguy.elasticsearch\n\n## License\n\nMIT / BSD\n\n## Author Information\n\nThis role was created in 2014 by [Jeff Geerling](https://www.jeffgeerling.com/), author of [Ansible for DevOps](https://www.ansiblefordevops.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeerlingguy%2Fansible-role-elasticsearch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeerlingguy%2Fansible-role-elasticsearch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeerlingguy%2Fansible-role-elasticsearch/lists"}