<commit_before>---
- name: ensure securedrop worker configuration for supervisor is present
  template:
    src: "securedrop_worker.conf"
    dest: "/etc/supervisor/conf.d/securedrop_worker.conf"
    owner: root
    mode: 0644
  notify:
    - reload supervisor

  # Supervisor will not write logs if the parent directory does not exist, so
  # we create it here.
- name: ensure directory for securedrop worker logs is present
  file:
    path: "{{ worker_logs_dir }}"
    state: directory
    # should be the same user that the worker runs as
    owner: root
    group: root
    mode: 0644<commit_msg>adds tags "supervisor", "permissions", and "logging" to worker config<commit_after>---
- name: ensure securedrop worker configuration for supervisor is present
  template:
    src: "securedrop_worker.conf"
    dest: "/etc/supervisor/conf.d/securedrop_worker.conf"
    owner: root
    mode: 0644
  notify:
    - reload supervisor
  tags:
    - supervisor

  # Supervisor will not write logs if the parent directory does not exist, so
  # we create it here.
- name: ensure directory for securedrop worker logs is present
  file:
    path: "{{ worker_logs_dir }}"
    state: directory
    # should be the same user that the worker runs as
    owner: root
    group: root
    mode: 0644
  tags:
    - supervisor
    - permissions
    - logging
{'fraction_non_alphanumeric': 0.07761194029850746, 'fraction_numerical': 0.011940298507462687, 'mean_word_length': 3.027027027027027, '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': '535454', 'n_tokens_mistral': 406, 'n_tokens_neox': 379, 'n_words': 151}