2022-05-31 04:36:55 +00:00
|
|
|
---
|
2022-05-30 15:46:36 +00:00
|
|
|
- name: Install torrc
|
|
|
|
template:
|
2023-01-20 00:02:55 +00:00
|
|
|
src: templates/torrc
|
2022-05-30 15:46:36 +00:00
|
|
|
dest: /etc/tor/torrc
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: u=rw,g=r,o=r
|
|
|
|
|
|
|
|
- name: Create Tor HS directory
|
|
|
|
file:
|
|
|
|
path: /var/lib/tor/{{ domain }}
|
|
|
|
state: directory
|
|
|
|
owner: debian-tor
|
|
|
|
group: debian-tor
|
|
|
|
mode: u=rwx,g=,o=
|
|
|
|
|
|
|
|
- name: Set Tor HS keys
|
|
|
|
copy:
|
|
|
|
src: secrets/hs_ed25519_secret_key
|
|
|
|
dest: /var/lib/tor/{{ domain }}/hs_ed25519_secret_key
|
|
|
|
owner: debian-tor
|
|
|
|
group: debian-tor
|
|
|
|
mode: u=rw,g=,o=
|
|
|
|
|
2023-01-14 23:26:17 +00:00
|
|
|
- name: Enable Tor Service
|
2022-05-30 15:46:36 +00:00
|
|
|
systemd:
|
|
|
|
name: tor
|
|
|
|
enabled: yes
|
2022-08-02 18:32:19 +00:00
|
|
|
state: started
|