<commit_before>---
- include_vars: apache2.yml
- name: Install apache2
  become: yes
  apt:  pkg=apache2 state=latest

- name: apache2 envvars setup
  become: yes
  template: src=apache2/envvars.j2 dest=/etc/apache2/envvars owner=root group=root mode=644

# apache modules
- name: Install apache modules
  become: yes<commit_msg>add apache servername conf<commit_after>---
- include_vars: apache2.yml
- name: Install apache2
  become: yes
  apt:  pkg=apache2 state=latest

- name: apache2 envvars setup
  become: yes
  template: src=apache2/envvars.j2 dest=/etc/apache2/envvars owner=root group=root mode=644

- name: apache2 create servername file
  become: yes
  file: path=/etc/apache2/conf-available/servername.conf state=touch

- name: apache2 adding localhost servername
  become: yes
  lineinfile: dest=/etc/apache2/conf-available/servername.conf state=present line='ServerName localhost'

- name: Enable apache servername #TODO: fix return always changed
  become: yes
  command: a2enconf servername

# apache modules
- name: Install apache modules
  become: yes
{'fraction_non_alphanumeric': 0.09252336448598131, 'fraction_numerical': 0.02336448598130841, 'mean_word_length': 4.492307692307692, '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': '6876148', 'n_tokens_mistral': 363, 'n_tokens_neox': 343, 'n_words': 100}