<commit_before>---
- hosts: all
  gather_facts: no
  tasks:
    - name: Read vars from secrets file
      include_vars: "{{ secrets_file }}"
      tags: always
      check_mode: no

- hosts: all
  gather_facts: yes
  become: true
  roles:
    - { role: common,  tags: ['common'] }
    - { role: tls,     tags: ['tls'] }
    - { role: hosts,   tags: ['hosts'] }
    - { role: rsyslog, tags: ['rsyslog'] }
  handlers:
    - include: roles/httpd/handlers/main.yml

- hosts: storage
  gather_facts: yes
  become: true
  roles:
    - { role: mysql,                   tags: ['mysql'] }

- hosts: loadbalancer
  gather_facts: true
  become: true
  roles:
    - { role: haproxy, tags: ['lb'] }

- hosts: php-apps:java-apps
  gather_facts: yes
  become: true
  roles:
    - httpd
  handlers:
    - include: roles/httpd/handlers/main.yml

- hosts: php-apps
  gather_facts: no
  become: true
  vars:
    env_lang: php
  roles:
    - { role: php56fpm,                          tags: ['php56fpm'] }
    - { role: static,                            tags: ['static'] }
    - { role: metadata,                          tags: ['static'] }
    - { role: welcome,                           tags: ['welcome'] }
    - { role: openconext-common,                 tags: ['eb','profile'] }
    - { role: engineblock,                       tags: ['eb'     ] }
    - { role: profile,                           tags: ['profile'] }
  handlers:
    - include: roles/httpd/handlers/main.yml

- hosts: java-apps
  gather_facts: true
  become: true
  vars:
    env_lang: java<commit_msg>Add stats and elk to the vm playbook<commit_after>---
- hosts: all
  gather_facts: no
  tasks:
    - name: Read vars from secrets file
      include_vars: "{{ secrets_file }}"
      tags: always
      check_mode: no

- hosts: all
  gather_facts: yes
  become: true
  roles:
    - { role: common,  tags: ['common'] }
    - { role: tls,     tags: ['tls'] }
    - { role: hosts,   tags: ['hosts'] }
    - { role: rsyslog, tags: ['rsyslog'] }
  handlers:
    - include: roles/httpd/handlers/main.yml

- hosts: storage
  gather_facts: yes
  become: true
  roles:
    - { role: mysql,                   tags: ['mysql'] }
    - { role: elk,                     tags: ['elk'] }
    - { role: influxdb,                  tags: ['influxdb'] }
    - { role: filebeat,                  tags: ['filebeat'] }

- hosts: loadbalancer
  gather_facts: true
  become: true
  roles:
    - { role: haproxy, tags: ['lb'] }

- hosts: php-apps:java-apps
  gather_facts: yes
  become: true
  roles:
    - httpd
  handlers:
    - include: roles/httpd/handlers/main.yml

- hosts: php-apps
  gather_facts: no
  become: true
  vars:
    env_lang: php
  roles:
    - { role: php56fpm,                          tags: ['php56fpm'] }
    - { role: static,                            tags: ['static'] }
    - { role: metadata,                          tags: ['static'] }
    - { role: welcome,                           tags: ['welcome'] }
    - { role: openconext-common,                 tags: ['eb','profile'] }
    - { role: engineblock,                       tags: ['eb'     ] }
    - { role: profile,                           tags: ['profile'] }
    - { role: stats,                  tags: ['stats'] }
  handlers:
    - include: roles/httpd/handlers/main.yml

- hosts: java-apps
  gather_facts: true
  become: true
  vars:
    env_lang: java
{'fraction_non_alphanumeric': 0.13963161021984552, 'fraction_numerical': 0.0023767082590612004, 'mean_word_length': 1.6449332285938727, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '5348304', 'n_tokens_mistral': 1144, 'n_tokens_neox': 1132, 'n_words': 276}