<commit_before>---
- name: add nginx public key
  apt_key:
    id: <KEY>
    keyserver: keyserver.ubuntu.com

- name: add nginx repository
  apt_repository:
    repo: "deb http://nginx.org/packages/mainline/debian/ {{ ansible_distribution_release }} nginx"

- name: install packages
  apt:
    name: nginx

- name: delete default nginx configuration
  file:
    dest: "{{ item }}"
    state: absent
  with_items:
  - /etc/nginx/conf.d/default.conf
  - /etc/nginx/conf.d/example_ssl.conf

- name: configure logrotate
  copy:
    src: logrotate.conf
    dest: /etc/logrotate.d/nginx

- name: copy dhparam.pem
  copy:
    src: dhparam.pem
    dest: /etc/nginx/dhparam.pem
  notify: reload nginx

- name: configure nginx
  template:
    src: nginx.conf.j2
    dest: /etc/nginx/nginx.conf
  notify: reload nginx

- name: create /srv/www/default
  file:
    dest: /srv/www/default
    state: directory<commit_msg>Do not try to remove /etc/nginx/conf.d/example_ssl.conf.<commit_after>---
- name: add nginx public key
  apt_key:
    id: <KEY>
    keyserver: keyserver.ubuntu.com

- name: add nginx repository
  apt_repository:
    repo: "deb http://nginx.org/packages/mainline/debian/ {{ ansible_distribution_release }} nginx"

- name: install packages
  apt:
    name: nginx

- name: delete default nginx configuration
  file:
    dest: /etc/nginx/conf.d/default.conf
    state: absent

- name: configure logrotate
  copy:
    src: logrotate.conf
    dest: /etc/logrotate.d/nginx

- name: copy dhparam.pem
  copy:
    src: dhparam.pem
    dest: /etc/nginx/dhparam.pem
  notify: reload nginx

- name: configure nginx
  template:
    src: nginx.conf.j2
    dest: /etc/nginx/nginx.conf
  notify: reload nginx

- name: create /srv/www/default
  file:
    dest: /srv/www/default
    state: directory
{'fraction_non_alphanumeric': 0.11639619473978735, 'fraction_numerical': 0.001119194180190263, 'mean_word_length': 2.836909871244635, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6313969', 'n_tokens_mistral': 684, 'n_tokens_neox': 647, 'n_words': 157}