add tor p2p

This commit is contained in:
qvqc 2021-07-05 05:16:58 -04:00
parent d97a551b15
commit f007eab137
No known key found for this signature in database
GPG key ID: 9EB04103C6BE892D
3 changed files with 14 additions and 1 deletions

View file

@ -94,6 +94,17 @@
slurp:
src: /var/lib/tor/wownero/hostname
register: onionhost
- name: echo onion
shell: echo {{ onionhost['content'] | b64decode }}
register: onionhostinsert
- name: add tor inbound wownerod.conf
lineinfile:
dest: /etc/wownerod.conf
line: "anonymous-inbound={{ onionhostinsert.stdout }}:{{ wownerod_p2p_tor_port }},127.0.0.1:{{ wownerod_p2p_tor_port }},64"
notify:
- restart wownerod
- name: Flush handlers
meta: flush_handlers
- name: get i2p hostname
find:
path: /var/lib/i2pd/destinations