---
- name: install necessary packages for the tor onion service
  apt:
    package: tor
    state: latest
  notify: restart tor

- name: copy torrc template
  template:
    src: torrc.j2
    dest: "{{ torrc }}"
  notify: restart tor

---
- name: install necessary packages for the tor onion service
  apt:
    package: "{{ item }}"
    state: latest
  notify: restart tor
  with_items:
    - tor
    - torsocks

- name: copy torrc template
  template:
    src: torrc.j2
    dest: "{{ torrc }}"
  notify: restart tor

Install torsocks for serverspec acceptance tests through torify
Install torsocks for serverspec acceptance tests through torify
