<commit_before>---

- name: update apt
  command: apt-get update

- name: install nginx
  action: apt name=nginx

- name: delete default in sites-available
  action: file path=/etc/nginx/sites-enabled/default state=absent

- name: copy mediacenter to sites-available
  template: src=mediacenter dest=/etc/nginx/sites-available/mediacenter mode=0644

- name: copy mediacenter-cache to conf.d
  template: src=mediacenter-cache dest=/etc/nginx/conf.d/mediacenter-cache mode=0644

- name: link mediacenter in sites-enabled
  file: src=/etc/nginx/sites-available/mediacenter dest=/etc/nginx/sites-enabled/mediacenter state=link
  notify:
    - restart nginx




<commit_msg>[Mur] - Nginx conf, adding www-data user to users group<commit_after>---

- name: update apt
  command: apt-get update

- name: install nginx
  action: apt name=nginx

- name: delete default in sites-available
  action: file path=/etc/nginx/sites-enabled/default state=absent

- name: adding www-data user to the users group so we can access the static content from www-data see the mediacenter-cache for root path
  user: name='www-data'
        groups=users
        append=yes

- name: copy mediacenter to sites-available
  template: src=mediacenter dest=/etc/nginx/sites-available/mediacenter mode=0644

- name: copy mediacenter-cache to conf.d
  template: src=mediacenter-cache dest=/etc/nginx/conf.d/mediacenter-cache mode=0644

- name: link mediacenter in sites-enabled
  file: src=/etc/nginx/sites-available/mediacenter dest=/etc/nginx/sites-enabled/mediacenter state=link
  notify:
    - restart nginx





{'fraction_non_alphanumeric': 0.10044219835754896, 'fraction_numerical': 0.01010739102969046, 'mean_word_length': 3.888888888888889, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '2491035', 'n_tokens_mistral': 547, 'n_tokens_neox': 506, 'n_words': 139}