<commit_before>---
- name: "Directory Exists | {{ nginx_runtime_root }}"
  file:
    state: directory
    path: "{{ nginx_runtime_root }}"
    owner: "{{ nginx_user }}"
    group: wcadmin
    mode: 0775
  tags:
    - directory-structure
    - runtime-data
    - nginx

- name: nginx | update pidfile preferences
  replace:
    dest: "{{ item }}"
    regexp: '/var/run/\$NAME.pid'
    replace: "{{ nginx_pidfile_path }}"
  with_items:
    - /etc/init.d/nginx
    - /etc/logrotate.d/nginx
  tags:
    - initscript
    - runtime-data
    - pidfile
    - nginx

- name: "Directory Exists | {{ nginx_docroot }}"
  file:
    state: directory
    path: "{{ nginx_docroot }}"
    owner: "{{ nginx_user }}"
    group: wcadmin
    mode: 0775
  when: nginx_creates_docroot | bool
  tags:
    - directory-structure
    - nginx

- name: "Directory Exists | {{ nginx_auth_root }}"
  file:
    state: directory
    path: "{{ nginx_auth_root }}"
    owner: "{{ nginx_user }}"
    group: wcadmin
    mode: 0775
  when: nginx_auth_enabled | bool
  tags:
    - directory-structure<commit_msg>Changing when nginx creates auth_root.<commit_after>---
- name: "Directory Exists | {{ nginx_runtime_root }}"
  file:
    state: directory
    path: "{{ nginx_runtime_root }}"
    owner: "{{ nginx_user }}"
    group: wcadmin
    mode: 0775
  tags:
    - directory-structure
    - runtime-data
    - nginx

- name: nginx | update pidfile preferences
  replace:
    dest: "{{ item }}"
    regexp: '/var/run/\$NAME.pid'
    replace: "{{ nginx_pidfile_path }}"
  with_items:
    - /etc/init.d/nginx
    - /etc/logrotate.d/nginx
  tags:
    - initscript
    - runtime-data
    - pidfile
    - nginx

- name: "Directory Exists | {{ nginx_docroot }}"
  file:
    state: directory
    path: "{{ nginx_docroot }}"
    owner: "{{ nginx_user }}"
    group: wcadmin
    mode: 0775
  when: nginx_creates_docroot | bool
  tags:
    - directory-structure
    - nginx

- name: "Directory Exists | {{ nginx_auth_root }}"
  file:
    state: directory
    path: "{{ nginx_auth_root }}"
    owner: "{{ nginx_user }}"
    group: wcadmin
    mode: 0775
  when: "nginx_auth_password is defined"
  tags:
    - directory-structure
{'fraction_non_alphanumeric': 0.13682277318640956, 'fraction_numerical': 0.011019283746556474, 'mean_word_length': 2.5258899676375406, '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': '5789696', 'n_tokens_mistral': 841, 'n_tokens_neox': 792, 'n_words': 166}