add tor/i2p

This commit is contained in:
qvqc 2021-06-18 22:26:11 -04:00
parent 58cdd30ce8
commit 766036aaf6
No known key found for this signature in database
GPG key ID: 9EB04103C6BE892D
4 changed files with 61 additions and 0 deletions

View file

@ -63,3 +63,47 @@
systemd:
name: wownerod.service
enabled: true
- name: Install tor
apt: name=tor state=present
- name: Install tor config file
template:
src: torrc.j2
dest: /etc/tor/torrc
owner: root
group: root
mode: '0644'
notify:
- restart tor
- name: Install i2pd
apt: name=i2pd state=present
- name: Install i2pd tunnels.conf
template:
src: tunnels.conf.j2
dest: /etc/i2pd/tunnels.conf
owner: root
group: root
mode: '0644'
notify:
- restart i2pd
- name: Flush handlers
meta: flush_handlers
- name: Pause 1 minute for b32.i2p creation
pause:
minutes: 1
- name: get onion hostname
slurp:
src: /var/lib/tor/wownero/hostname
register: onionhost
- name: get i2p hostname
find:
path: /var/lib/i2pd/destinations
register: i2phost
- name: show b32 i2p and onion
debug:
msg:
- "ADD URLs TO https://MONERO.FAIL/?crypto=wownero"
- "YOUR I2P ADDRESS (remove .dat, add .b32.i2p):"
- "{{ item.path | basename }}"
- "YOUR TOR ADDRESS:"
- "{{ onionhost['content'] | b64decode }}"
with_items: "{{ i2phost.files }}"