30 lines
983 B
YAML
30 lines
983 B
YAML
#- 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: Add key to apt
|
|
shell: gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | apt-key add -
|
|
|
|
- name: Update repositories cache
|
|
apt:
|
|
update_cache: yes
|
|
|
|
- name: Install tor
|
|
apt:
|
|
pkg:
|
|
- tor
|
|
|