add tor
This commit is contained in:
parent
2e7b7c48b4
commit
d57d37b693
3 changed files with 41 additions and 0 deletions
24
roles/tor/tasks/debian_family.yml
Normal file
24
roles/tor/tasks/debian_family.yml
Normal file
|
@ -0,0 +1,24 @@
|
|||
#- name: Include variables
|
||||
# include_vars:
|
||||
# file: "../../../variables.yml"
|
||||
|
||||
#- name: Install docker prerequsistes
|
||||
# apt:
|
||||
# pkg:
|
||||
# - squashfs-tools
|
||||
|
||||
- name: add tor repo in /etc/apt/sources.list.d/tor.list [1/2]
|
||||
shell: echo "deb https://deb.torproject.org/torproject.org {{ ansible_distribution_release }} main" > /etc/apt/sources.list.d/tor.list
|
||||
|
||||
- name: add tor repo in /etc/apt/sources.list.d/tor.list [2/2]
|
||||
shell: echo "deb-src https://deb.torproject.org/torproject.org {{ ansible_distribution_release }} main" >> /etc/apt/sources.list.d/tor.list
|
||||
|
||||
- name: Add tor repo key
|
||||
shell: curl https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc | gpg --import
|
||||
|
||||
- name: Install tor
|
||||
apt:
|
||||
pkg:
|
||||
- deb.torproject.org-keyring
|
||||
- tor
|
||||
|
10
roles/tor/tasks/main.yml
Normal file
10
roles/tor/tasks/main.yml
Normal file
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
|
||||
#- include: ubuntu.yml
|
||||
# when: ansible_distribution == 'Ubuntu'
|
||||
|
||||
- include: debian_family.yml
|
||||
when: ansible_os_family == 'Debian'
|
||||
|
||||
#- include: redhat.yml
|
||||
# when: ansible_os_family == 'RedHat'
|
7
tor.yml
Normal file
7
tor.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
|
||||
- name: "tor"
|
||||
hosts: thismachine
|
||||
connection: local
|
||||
roles:
|
||||
- tor
|
Loading…
Reference in a new issue