1 #####################################
2 ### someone's ansible provisioner ###
3 #####################################
4 # 2017 by someone <someone@somenet.org>
13 when: setup_tor | bool
15 ignore_errors: "{{ignore_online_errors | bool}}"
21 dest: "/etc/tor/torrc"
26 - "{{lookup('env','PWD')}}/host_files/{{inventory_hostname}}/{{role_name}}/torrc"
27 - "{{lookup('env','PWD')}}/group_files/{{group_files_group}}/{{role_name}}/torrc"
28 - "{{lookup('env','PWD')}}/group_files/all/{{role_name}}/torrc"
30 when: setup_tor | bool
31 notify: restart tor.service
34 # for each hidserv do a with first found.
35 - include_tasks: configure-hidserv.yml
36 with_items: "{{hidden_services}}"
39 when: setup_tor | bool
42 - name: enable and start tor.service
43 include_role: name="base/systemd/enable-and-start"
45 service_name: tor.service
46 when: setup_tor | bool