<commit_before>---
# tasks file for hipach

- name: Add tsuru repositories.
  apt_repository: repo='ppa:tsuru/ppa' update_cache=yes

- name: Install system packages.
  apt: update_cache=true name="{{ item }}"
  with_items: packages

- name: Install Hipache packages with npm
  npm: global=yes name=hipache state=present

- name: copy hipache upstart script
  copy: src=hipache.upstart dest=/etc/init/hipache.conf owner=root group=root mode=0644
  notify:
    - restart hipache

- name: Copy configuration file.
  template: src=hipache.conf.j2 dest=/etc/hipache.conf
  notify:
    - restart hipache<commit_msg>Create hipache log dir. (needed if hipache is not installed form apt repository)<commit_after>---
# tasks file for hipach

- name: Add tsuru repositories.
  apt_repository: repo='ppa:tsuru/ppa' update_cache=yes

- name: Install system packages.
  apt: update_cache=true name="{{ item }}"
  with_items: packages

# hipache package shipped with ubuntu does not allow
# to specify an external redis server.
- name: Install Hipache packages with npm
  npm: global=yes name=hipache state=present

- name: copy hipache upstart script
  copy: src=hipache.upstart dest=/etc/init/hipache.conf owner=root group=root mode=0644
  notify:
    - restart hipache

- name: Create hipache log directory.
  file: dest=/var/log/hipache state=directory

- name: Copy configuration file.
  template: src=hipache.conf.j2 dest=/etc/hipache.conf
  notify:
    - restart hipache
{'fraction_non_alphanumeric': 0.09781121751025992, 'fraction_numerical': 0.006839945280437756, 'mean_word_length': 4.1879432624113475, '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': '215683', 'n_tokens_mistral': 479, 'n_tokens_neox': 451, 'n_words': 145}