---
- 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

---
- 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

Check for each hidden service dir on monitor server
Check for each hidden service dir on monitor server
