<commit_before>---
# tasks file for nginx
  - name: nginx | Adding nginx ppa
    apt_repository:
      repo="{{nginx_ppa}}"
      update_cache=yes
    when: nginx_install_from_ppa

  - name: nginx | Installing nginx
    apt:
      pkg=nginx

  - name: nginx | Copying nginx.conf
    template:
      src=nginx.conf.j2
      dest=/etc/nginx/nginx.conf
      backup=yes
      owner=root
      mode=0644
    notify:
      - restart nginx

  - name: nginx | Enabling monitoring with monit
    template:
      src=monit_nginx.j2
      dest=/etc/monit/conf.d/nginx
      backup=yes
      owner=root
      mode=0644
    when: monit_protection == true
    notify:
      - restart monit
<commit_msg>creating ssl dir in nginx<commit_after>---
  - name: nginx | Adding nginx ppa
    apt_repository:
      repo="{{nginx_ppa}}"
      update_cache=yes
    when: nginx_install_from_ppa

  - name: nginx | Installing nginx
    apt:
      pkg=nginx

  - name: nginx | Creating ssl dir
    file:
      path=/etc/nginx/ssl
      state=directory
      owner=root
      mode=770

  - name: nginx | Copying nginx.conf
    template:
      src=nginx.conf.j2
      dest=/etc/nginx/nginx.conf
      backup=yes
      owner=root
      mode=0644
    notify:
      - restart nginx

  - name: nginx | Enabling monitoring with monit
    template:
      src=monit_nginx.j2
      dest=/etc/monit/conf.d/nginx
      backup=yes
      owner=root
      mode=0644
    when: monit_protection == true
    notify:
      - restart monit

{'fraction_non_alphanumeric': 0.09109176155391828, 'fraction_numerical': 0.015405224380442064, 'mean_word_length': 2.0804123711340208, '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': '5355056', 'n_tokens_mistral': 568, 'n_tokens_neox': 513, 'n_words': 114}