<commit_before>---

# elasticsearch
# 
# Dependencies:
#
#   * common
#   * oraclejdk
# 
# Example play:
#  
# This role can be used to do a single-server or clustered
# installation of the elasticsearch service.  When a cluster
# is being installed, there are two important things that
# you must know.

# The ELASTICSEARCH_CLUSTERED var must be true.

# All hosts targeted by your play will be cluster peers.
# Elasticsearch will determine who the master should be.
#
# Ansible provides handy set operators for use in the
# plays host declaration, as seen in the following example.
#
# -  hosts: tag_role_elasticsearch:&tag_environment_stage
#    roles:
#    - common
#    - oraclejdk
#    - elasticsearch
#

- name: download elasticsearch
  get_url: >
    url={{ elasticsearch_url }}
    dest=/var/tmp/{{ elasticsearch_file }}
    force=no
  register: elasticsearch_reinstall

- name: install elasticsearch from local package
  shell: >
    dpkg -i  --force-confold /var/tmp/elasticsearch-{{ elasticsearch_version }}.deb
    executable=/bin/bash
  when: elasticsearch_reinstall.changed

- name: create directories
  file: >
    path="{{ item }}"
    state=directory
    owner="{{ elasticsearch_user }}"<commit_msg>elastic search install error fix<commit_after>---

# elasticsearch
# 
# Dependencies:
#
#   * common
#   * oraclejdk
# 
# Example play:
#  
# This role can be used to do a single-server or clustered
# installation of the elasticsearch service.  When a cluster
# is being installed, there are two important things that
# you must know.

# The ELASTICSEARCH_CLUSTERED var must be true.

# All hosts targeted by your play will be cluster peers.
# Elasticsearch will determine who the master should be.
#
# Ansible provides handy set operators for use in the
# plays host declaration, as seen in the following example.
#
# -  hosts: tag_role_elasticsearch:&tag_environment_stage
#    roles:
#    - common
#    - oraclejdk
#    - elasticsearch
#

- name: download elasticsearch
  get_url: >
    url={{ elasticsearch_url }}
    dest=/var/tmp/{{ elasticsearch_file }}
    force=no
    validate_certs=no
  register: elasticsearch_reinstall

- name: install elasticsearch from local package
  shell: >
    dpkg -i  --force-confold /var/tmp/elasticsearch-{{ elasticsearch_version }}.deb
    executable=/bin/bash
  when: elasticsearch_reinstall.changed

- name: create directories
  file: >
    path="{{ item }}"
    state=directory
    owner="{{ elasticsearch_user }}"
{'fraction_non_alphanumeric': 0.09171717171717171, 'fraction_numerical': 0.0, 'mean_word_length': 3.5682656826568264, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7140525', 'n_tokens_mistral': 752, 'n_tokens_neox': 736, 'n_words': 249}