<commit_before># install a dummy http server
---
- name: install nginx
  apt:
    name: nginx
    state: present

- name: remove upstream nginx default
  file:
    dest: /etc/nginx/sites-enabled/default
    state: absent

- name: install our NGINX default file
  copy:
    src: default
    dest: /etc/nginx/sites-available/scz-default

- name: Create symlink to default in /etc/nginx/sites-enabled
  file:
    src: "/etc/nginx/sites-available/default"
    dest: "/etc/nginx/sites-enabled/00-scz-default"
    state: link
  notify: restart nginx

- name: enable nginx
  service:
    name: nginx.service
    state: started
    enabled: true
<commit_msg>remove old version of nginx default config<commit_after># install a dummy http server
---
- name: install nginx
  apt:
    name: nginx
    state: present

- name: remove upstream nginx default
  file:
    dest: "{{item}}"
    state: absent
  with_items:
    - "/etc/nginx/sites-enabled/default"
    - "/etc/nginx/sites-enabled/00-default"

- name: install our NGINX default file
  copy:
    src: default
    dest: /etc/nginx/sites-available/scz-default

- name: Create symlink to default in /etc/nginx/sites-enabled
  file:
    src: "/etc/nginx/sites-available/default"
    dest: "/etc/nginx/sites-enabled/00-scz-default"
    state: link
  notify: restart nginx

- name: enable nginx
  service:
    name: nginx.service
    state: started
    enabled: true

{'fraction_non_alphanumeric': 0.10881934566145092, 'fraction_numerical': 0.004267425320056899, 'mean_word_length': 2.8442622950819674, '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': '948524', 'n_tokens_mistral': 499, 'n_tokens_neox': 471, 'n_words': 133}