|
|
@@ -0,0 +1,20 @@ |
|
|
|
--- |
|
|
|
|
|
|
|
- import_tasks: setup_Debian.yaml |
|
|
|
|
|
|
|
- name: torrc config file |
|
|
|
template: |
|
|
|
src: torrc.j2 |
|
|
|
dest: /etc/tor/torrc |
|
|
|
notify: restart tor |
|
|
|
|
|
|
|
- name: flush handlers |
|
|
|
meta: flush_handlers |
|
|
|
|
|
|
|
- name: get tor hidden service hostnames |
|
|
|
command: cat /var/lib/tor/{{item}}/hostname |
|
|
|
loop: "{{ tor_hidden_services | json_query('[*].name') }}" |
|
|
|
register: tor_hidden_services_hostnames_cat |
|
|
|
changed_when: false |
|
|
|
|
|
|
|
- import_tasks: local_facts.yaml |