<commit_before>---
- name: Converge
  hosts: all
  vars:
    #Graylog
    graylog_install_elasticsearch: True
    graylog_install_mongodb:       True
    graylog_install_nginx:         False
    graylog_install_java:          True
    graylog_not_testing:           False
    graylog_version:               3.3
    graylog_web_endpoint_uri: "http://127.0.0.1:9000/api/"

    #Elasticsearch
    es_major_version: "6.x"
    es_version: 6.8.10
    es_instance_name: "graylog"
    es_scripts: False
    es_templates: False
    es_version_lock: False
    es_heap_size: "1g"
    es_java_install: False
    oss_version: True

    es_config:
      node.name: "graylog"
      cluster.name: "graylog"
      http.port: 9200
      transport.tcp.port: 9300
      network.host: "0.0.0.0"
      node.data: True
      node.master: True

    #Java
    java_distribution: adoptopenjdk
    java_major_version: 8

    nginx_sites:
      graylog:
        - "listen 80"
        - "server_name graylog"
        - |
          location / {
            proxy_pass http://localhost:9000/;
            proxy_set_header Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_pass_request_headers on;
            proxy_connect_timeout 150;
            proxy_send_timeout 100;
            proxy_read_timeout 100;
            proxy_buffers 4 32k;
            client_max_body_size 8m;
            client_body_buffer_size 128k;
          }

  tasks:
    - name: "Include graylog-ansible-role"
      include_role:
        name: "graylog-ansible-role"
  become: yes<commit_msg>Fix test so that Graylog launches properly.<commit_after>---
- name: Converge
  hosts: all
  vars:
    #Graylog
    graylog_install_elasticsearch: True
    graylog_install_mongodb:       True
    graylog_install_nginx:         False
    graylog_install_java:          True
    graylog_not_testing:           False
    graylog_version:               3.3
    graylog_http_bind_address: "{{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }}:9000"
    graylog_http_publish_uri: "http://{{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }}:9000/"
    graylog_http_external_uri: "http://{{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }}:9000/"

    #Elasticsearch
    es_major_version: "6.x"
    es_version: 6.8.10
    es_instance_name: "graylog"
    es_scripts: False
    es_templates: False
    es_version_lock: False
    es_heap_size: "1g"
    es_java_install: False
    oss_version: True

    es_config:
      node.name: "graylog"
      cluster.name: "graylog"
      http.port: 9200
      transport.tcp.port: 9300
      network.host: "0.0.0.0"
      node.data: True
      node.master: True

    #Java
    java_distribution: adoptopenjdk
    java_major_version: 8

    nginx_sites:
      graylog:
        - "listen 80"
        - "server_name graylog"
        - |
          location / {
            proxy_pass http://localhost:9000/;
            proxy_set_header Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_pass_request_headers on;
            proxy_connect_timeout 150;
            proxy_send_timeout 100;
            proxy_read_timeout 100;
            proxy_buffers 4 32k;
            client_max_body_size 8m;
            client_body_buffer_size 128k;
          }

  tasks:
    - name: "Include graylog-ansible-role"
      include_role:
        name: "graylog-ansible-role"
    - debug:
        msg: "Graylog is up at {{ graylog_http_external_uri }}"
  become: yes
{'fraction_non_alphanumeric': 0.08553527649141923, 'fraction_numerical': 0.030236992645055843, 'mean_word_length': 2.221052631578947, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 3, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5369659', 'n_tokens_mistral': 1281, 'n_tokens_neox': 1198, 'n_words': 225}