<commit_before>---

- name: Check COSI directory
  become: true
  file:
      path="{{ cosi_directory }}"
      owner="{{ cosi_owner }}"
      group="{{ cosi_group }}"
      mode="0755"
      state="directory"


- name: Check COSI bin directory
  become: true
  file:
      path="{{ cosi_directory }}/bin"
      owner="{{ cosi_owner }}"
      group="{{ cosi_group }}"
      mode="0755"
      state="directory"


- name: Check log directory
  become: true
  file:
      path="{{ log_directory }}"
      owner="{{ cosi_owner }}"
      group="{{ cosi_group }}"
      mode="0755"
      state="directory"

- name: Unpack COSI Site package
  become: true
  unarchive:
      src="cosi-site-{{ cosi_site_version }}.tar.gz"
      dest="{{ cosi_directory }}"
      copy="yes"
      owner="{{ cosi_owner }}"
      group="{{ cosi_group }}"
  notify: Restart Site

- name: Install COSI Site config
  become: true
  template:
      src="cosi-site.json.j2"
      dest="{{ cosi_directory }}/etc/cosi-site.json"
      owner="{{ cosi_owner }}"
      group="{{ cosi_group }}"
      mode="0640"
  notify: Restart Site

- name: Install 'bunyan' nodejs module
  become: true
  npm: executable="{{ npm_bin }}" path="{{ cosi_directory }}"  state="present" name="bunyan" version="1.8.5"
  notify: Restart Site

- name: Install 'commander' nodejs module
  become: true<commit_msg>upstream npm package update (bunyan)<commit_after>---

- name: Check COSI directory
  become: true
  file:
      path="{{ cosi_directory }}"
      owner="{{ cosi_owner }}"
      group="{{ cosi_group }}"
      mode="0755"
      state="directory"


- name: Check COSI bin directory
  become: true
  file:
      path="{{ cosi_directory }}/bin"
      owner="{{ cosi_owner }}"
      group="{{ cosi_group }}"
      mode="0755"
      state="directory"


- name: Check log directory
  become: true
  file:
      path="{{ log_directory }}"
      owner="{{ cosi_owner }}"
      group="{{ cosi_group }}"
      mode="0755"
      state="directory"

- name: Unpack COSI Site package
  become: true
  unarchive:
      src="cosi-site-{{ cosi_site_version }}.tar.gz"
      dest="{{ cosi_directory }}"
      copy="yes"
      owner="{{ cosi_owner }}"
      group="{{ cosi_group }}"
  notify: Restart Site

- name: Install COSI Site config
  become: true
  template:
      src="cosi-site.json.j2"
      dest="{{ cosi_directory }}/etc/cosi-site.json"
      owner="{{ cosi_owner }}"
      group="{{ cosi_group }}"
      mode="0640"
  notify: Restart Site

- name: Install 'bunyan' nodejs module
  become: true
  npm: executable="{{ npm_bin }}" path="{{ cosi_directory }}"  state="present" name="bunyan" version="1.8.10"
  notify: Restart Site

- name: Install 'commander' nodejs module
  become: true
{'fraction_non_alphanumeric': 0.15885797950219618, 'fraction_numerical': 0.015007320644216691, 'mean_word_length': 2.8656294200848658, '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': '3731321', 'n_tokens_mistral': 932, 'n_tokens_neox': 916, 'n_words': 231}