<commit_before>---
- name: ensure the parent directory for hidden services exists
  file:
    state: directory
    path: "{{ tor_hidden_services_parent_dir }}"
    owner: "{{ tor_user }}"

- name: ensure securedrop mon servers torrc is present
  copy: src=torrc-mon dest=/etc/tor/torrc owner="{{ tor_user }}" mode=0644
  notify: restart tor

- name: ensure tor is running
  service: name=tor state=running<commit_msg>Check for each hidden service dir on monitor server<commit_after>---
- name: ensure the parent directory for hidden services exists
  file:
    state: directory
    path: "{{ tor_hidden_services_parent_dir }}"
    owner: "{{ tor_user }}"

- name: ensure each hidden service's directory exists
  file:
    state: directory
    dest: "{{ tor_hidden_services_parent_dir }}/{{ item }}"
    owner: "{{ tor_user }}"
  with_items: mon_tor_instances

- name: ensure securedrop mon servers torrc is present
  copy: src=torrc-mon dest=/etc/tor/torrc owner="{{ tor_user }}" mode=0644
  notify: restart tor

- name: ensure tor is running
  service: name=tor state=running
{'fraction_non_alphanumeric': 0.11059479553903345, 'fraction_numerical': 0.007434944237918215, 'mean_word_length': 4.056338028169014, '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': '6746960', 'n_tokens_mistral': 333, 'n_tokens_neox': 325, 'n_words': 108}