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'