<commit_before># Base image for both broker-api and broker-val
---
- hosts: "{{ HOST }}"

  become_method: sudo

  user: ec2-user

  tasks:

    - name: install base dependencies
      become: true
      yum: name={{ item }}
      with_items:
        - python-devel.x86_64
        - python35u
        - python35u-libs
        - python35u-devel 
        - python35u-pip
        - postgresql-devel.x86_64
        - gcc
        - gcc-c++
        - libffi-devel
        - pcre.x86_64
        - pcre-devel.x86_64

    - name: install nginx (from nginx repo)
      become: true
      yum: 
        name=http://nginx.org/packages/mainline/centos/7/x86_64/RPMS/nginx-1.13.8-1.el7_4.ngx.x86_64.rpm

    - name: install New Relic APM
      become: true
      pip: name=newrelic executable=pip3.5

    - name: Download New Relic Infrastructure
      become: true
      shell: curl -o /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/el/7/x86_64/newrelic-infra.repo

    - name: Update cache for New Relic Infrastructure
      become: true
      shell: yum -q makecache -y --disablerepo='*' --enablerepo='newrelic-infra'

    - name: Install New Relic Infrastructure
      become: true
      yum: name=newrelic-infra

    - name: install filebeat (from filebeat repo)
      become: true
      yum: 
        name=https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-5.1.1-x86_64.rpm<commit_msg>updating filebeat version<commit_after># Base image for both broker-api and broker-val
---
- hosts: "{{ HOST }}"

  become_method: sudo

  user: ec2-user

  tasks:

    - name: install base dependencies
      become: true
      yum: name={{ item }}
      with_items:
        - python-devel.x86_64
        - python35u
        - python35u-libs
        - python35u-devel 
        - python35u-pip
        - postgresql-devel.x86_64
        - gcc
        - gcc-c++
        - libffi-devel
        - pcre.x86_64
        - pcre-devel.x86_64

    - name: install nginx (from nginx repo)
      become: true
      yum: 
        name=http://nginx.org/packages/mainline/centos/7/x86_64/RPMS/nginx-1.13.8-1.el7_4.ngx.x86_64.rpm

    - name: install New Relic APM
      become: true
      pip: name=newrelic executable=pip3.5

    - name: Download New Relic Infrastructure
      become: true
      shell: curl -o /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/el/7/x86_64/newrelic-infra.repo

    - name: Update cache for New Relic Infrastructure
      become: true
      shell: yum -q makecache -y --disablerepo='*' --enablerepo='newrelic-infra'

    - name: Install New Relic Infrastructure
      become: true
      yum: name=newrelic-infra

    - name: install filebeat (from filebeat repo)
      become: true
      yum: 
        name=https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-6.1.1-x86_64.rpm
{'fraction_non_alphanumeric': 0.11065006915629322, 'fraction_numerical': 0.03803596127247579, 'mean_word_length': 2.1074113856068744, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3006495', 'n_tokens_mistral': 1113, 'n_tokens_neox': 1004, 'n_words': 207}