tor1: bridge --> relay (#265)
Co-authored-by: Michael Grote <michael.grote@posteo.de> Reviewed-on: mg/ansible#265 Co-authored-by: mg <michael.grote@posteo.de> Co-committed-by: mg <michael.grote@posteo.de>
This commit is contained in:
parent
57e286abf2
commit
7ac4a0eaf2
5 changed files with 39 additions and 48 deletions
|
@ -8,8 +8,7 @@
|
||||||
tor_control_socket: 0
|
tor_control_socket: 0
|
||||||
tor_contact_info: webmaster(at)mgrote(dot)net
|
tor_contact_info: webmaster(at)mgrote(dot)net
|
||||||
tor_control_port: 9051
|
tor_control_port: 9051
|
||||||
tor_mode: bridge
|
tor_mode: relay
|
||||||
tor_bridge_port: 5555
|
|
||||||
### oefenweb.ufw
|
### oefenweb.ufw
|
||||||
ufw_rules:
|
ufw_rules:
|
||||||
- rule: allow
|
- rule: allow
|
||||||
|
|
|
@ -1,27 +1,8 @@
|
||||||
---
|
---
|
||||||
- name: install dependencies
|
- name: install obsf packages
|
||||||
become: yes
|
|
||||||
ansible.builtin.package:
|
|
||||||
name: apt-transport-https
|
|
||||||
state: present
|
|
||||||
|
|
||||||
- name: add tor repo key
|
|
||||||
ansible.builtin.apt_key:
|
|
||||||
url: https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc
|
|
||||||
state: present
|
|
||||||
|
|
||||||
- name: add tor repo
|
|
||||||
ansible.builtin.apt_repository:
|
|
||||||
repo: deb https://deb.torproject.org/torproject.org {{ ansible_distribution_release }} main
|
|
||||||
state: present
|
|
||||||
filename: tor
|
|
||||||
|
|
||||||
- name: install tor packages
|
|
||||||
become: yes
|
become: yes
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
name:
|
name:
|
||||||
- tor
|
|
||||||
- deb.torproject.org-keyring
|
|
||||||
- obfs4proxy
|
- obfs4proxy
|
||||||
state: present
|
state: present
|
||||||
notify: restart tor
|
notify: restart tor
|
||||||
|
|
|
@ -1,4 +1,30 @@
|
||||||
---
|
---
|
||||||
|
- name: install dependencies
|
||||||
|
become: yes
|
||||||
|
ansible.builtin.package:
|
||||||
|
name: apt-transport-https
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: add tor repo key
|
||||||
|
ansible.builtin.apt_key:
|
||||||
|
url: https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: add tor repo
|
||||||
|
ansible.builtin.apt_repository:
|
||||||
|
repo: deb https://deb.torproject.org/torproject.org {{ ansible_distribution_release }} main
|
||||||
|
state: present
|
||||||
|
filename: tor
|
||||||
|
|
||||||
|
- name: install tor packages
|
||||||
|
become: yes
|
||||||
|
ansible.builtin.package:
|
||||||
|
name:
|
||||||
|
- tor
|
||||||
|
- deb.torproject.org-keyring
|
||||||
|
state: present
|
||||||
|
notify: restart tor
|
||||||
|
|
||||||
- name: include bridge tasks
|
- name: include bridge tasks
|
||||||
include_tasks: bridge.yml
|
include_tasks: bridge.yml
|
||||||
when:
|
when:
|
||||||
|
@ -8,3 +34,6 @@
|
||||||
include_tasks: relay.yml
|
include_tasks: relay.yml
|
||||||
when:
|
when:
|
||||||
- tor_mode == 'relay'
|
- tor_mode == 'relay'
|
||||||
|
|
||||||
|
- name: include nyx tasks
|
||||||
|
include_tasks: nyx.yml
|
||||||
|
|
8
roles/mgrote.tor-node/tasks/nyx.yml
Normal file
8
roles/mgrote.tor-node/tasks/nyx.yml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
---
|
||||||
|
- name: install nyx packages
|
||||||
|
become: yes
|
||||||
|
ansible.builtin.package:
|
||||||
|
name:
|
||||||
|
- nyx
|
||||||
|
state: present
|
||||||
|
notify: restart tor
|
|
@ -1,30 +1,4 @@
|
||||||
---
|
---
|
||||||
- name: install dependencies
|
|
||||||
become: yes
|
|
||||||
ansible.builtin.package:
|
|
||||||
name: apt-transport-https
|
|
||||||
state: present
|
|
||||||
|
|
||||||
- name: add tor repo key
|
|
||||||
ansible.builtin.apt_key:
|
|
||||||
url: https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc
|
|
||||||
state: present
|
|
||||||
|
|
||||||
- name: add tor repo
|
|
||||||
ansible.builtin.apt_repository:
|
|
||||||
repo: deb https://deb.torproject.org/torproject.org {{ ansible_distribution_release }} main
|
|
||||||
state: present
|
|
||||||
filename: tor
|
|
||||||
|
|
||||||
- name: install tor packages
|
|
||||||
become: yes
|
|
||||||
ansible.builtin.package:
|
|
||||||
name:
|
|
||||||
- tor
|
|
||||||
- deb.torproject.org-keyring
|
|
||||||
state: present
|
|
||||||
notify: restart tor
|
|
||||||
|
|
||||||
- name: templating torrc
|
- name: templating torrc
|
||||||
become: yes
|
become: yes
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
|
|
Loading…
Reference in a new issue