From 12998cb55e558cb1ef9c633781d7831db7e648f3 Mon Sep 17 00:00:00 2001 From: "flyingscorpio@clevo" Date: Tue, 22 Feb 2022 08:27:00 +0100 Subject: [PATCH] toansible: Add tor installation --- configs.yml | 4 ---- playbook.yml | 1 + roles/tor/tasks/main.yml | 16 ++++++++++++++++ 3 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 roles/tor/tasks/main.yml diff --git a/configs.yml b/configs.yml index 8a5c601..31e5687 100644 --- a/configs.yml +++ b/configs.yml @@ -33,10 +33,6 @@ firefox: - run: - firefox $(sed -n '/^ http/p' firefox_addons.txt) -tor: - - install: - - torbrowser-launcher - terminator: - install: - terminator diff --git a/playbook.yml b/playbook.yml index 55cfb44..f610cb5 100644 --- a/playbook.yml +++ b/playbook.yml @@ -6,3 +6,4 @@ - neovim - ssh-agent - pacman.conf + - tor diff --git a/roles/tor/tasks/main.yml b/roles/tor/tasks/main.yml new file mode 100644 index 0000000..581393f --- /dev/null +++ b/roles/tor/tasks/main.yml @@ -0,0 +1,16 @@ +--- + +- name: Install Tor (Archlinux) + - install: + become: true + pacman: + name: + - torbrowser-launcher + when: ansible_distribution == 'Archlinux' + +- name: Install Tor (Debian) + become: true + apt: + name: + - torbrowser-launcher + when: ansible_distribution == 'Debian'