<commit_before>- name: "Directory Exists | {{ mongodb_log_root }}"
  file:
    state: directory
    path: "{{ mongodb_log_root }}"
    owner: "{{ mongodb_user }}"
    group: wcadmin
    mode: 0775
  tags:
    - directory-structure
    - logging
    - mongodb

- name: Configure | MongoDB | logpath 
  lineinfile:
    state: present
    dest: /etc/mongod.conf
    regexp: '^#* *logpath ?\='
    line: "logpath = {{ mongodb_log_path }}"
  notify: Reload Service | mongodb
  tags:
    - configuration
    - precise-configuration
    - logging
    - mongodb

- name: Configure | MongoDB | logappend
  lineinfile:
    state: present
    dest: /etc/mongod.conf
    regexp: '^#* *logappend ?\='<commit_msg>Changed logs to be readable by developers.<commit_after>- name: "Directory Exists | {{ mongodb_log_root }}"
  file:
    state: directory
    path: "{{ mongodb_log_root }}"
    owner: "{{ mongodb_user }}"
    group: wcdevelop
    mode: 0775
  tags:
    - directory-structure
    - logging
    - mongodb

- name: Configure | MongoDB | logpath 
  lineinfile:
    state: present
    dest: /etc/mongod.conf
    regexp: '^#* *logpath ?\='
    line: "logpath = {{ mongodb_log_path }}"
  notify: Reload Service | mongodb
  tags:
    - configuration
    - precise-configuration
    - logging
    - mongodb

- name: Configure | MongoDB | logappend
  lineinfile:
    state: present
    dest: /etc/mongod.conf
    regexp: '^#* *logappend ?\='
{'fraction_non_alphanumeric': 0.12806158152554234, 'fraction_numerical': 0.005598320503848845, 'mean_word_length': 2.6479591836734695, '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': '3467136', 'n_tokens_mistral': 518, 'n_tokens_neox': 488, 'n_words': 114}