M .builds/ubuntu.yml => .builds/ubuntu.yml +1 -2
@@ 15,5 15,4 @@ tasks:
ansible-lint test.yml
ansible-playbook test.yml -i inventory --syntax-check
ansible-playbook test.yml -i inventory --become
- sleep 10
- curl -I --socks5-hostname localhost:9050 http://ciadotgov4sjwlzihbbgxnqg3xiyrg7so2r2o3lt5wz5ypk4sxyjstad.onion/index.html
+ systemctl status tor
M defaults/main.yml => defaults/main.yml +3 -1
@@ 1,5 1,7 @@
---
-# disable Tor socks proxy for localhost
+# SOCKS client is *incompatible* with non-anonymous mode
+# so setting this to anything else than 0 when non-anonymous HS
+# are active will result in an error
tor_socks_port: 0
# scrub potentially sensitive information from logs (assuming they're enabled)
M templates/torrc.j2 => templates/torrc.j2 +1 -0
@@ 1,6 1,7 @@
# {{ ansible_managed }}
SocksPort {{ tor_socks_port }}
+
SafeLogging {{ tor_safe_logging }}
{% for hs in tor_hidden_services %}
M tests/host_vars/localhost => tests/host_vars/localhost +0 -1
@@ 2,7 2,6 @@
tor_sandbox: 1
tor_hardware_accel: 1
tor_noexec: 1
-tor_socks_port: 9050
tor_hidden_services: