From 7dba25bbd3d7553c4acea2def00668b1d85ab64b Mon Sep 17 00:00:00 2001 From: mg Date: Mon, 18 Oct 2021 14:12:09 +0200 Subject: [PATCH] tor: paket aus offiziellem repo statt ubuntu (#222) Co-authored-by: Michael Grote Reviewed-on: https://git.mgrote.net/mg/ansible/pulls/222 Co-authored-by: mg Co-committed-by: mg --- roles/mgrote.tor-node/tasks/main.yml | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/roles/mgrote.tor-node/tasks/main.yml b/roles/mgrote.tor-node/tasks/main.yml index f3df8062..540e3b1f 100644 --- a/roles/mgrote.tor-node/tasks/main.yml +++ b/roles/mgrote.tor-node/tasks/main.yml @@ -1,8 +1,27 @@ --- - - name: install packages + - name: install dependencies become: yes ansible.builtin.package: - name: tor + 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