summaryrefslogtreecommitdiffstats
path: root/roles/torrelay/tasks/pkgs.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/torrelay/tasks/pkgs.yml')
-rw-r--r--roles/torrelay/tasks/pkgs.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/roles/torrelay/tasks/pkgs.yml b/roles/torrelay/tasks/pkgs.yml
new file mode 100644
index 0000000..67e9d1d
--- /dev/null
+++ b/roles/torrelay/tasks/pkgs.yml
@@ -0,0 +1,21 @@
+- name: Installation du paquet Tor depuis le dépôt
+ yum: name=tor state=present
+ when: ansible_pkg_mgr == "yum"
+
+- name: Installation du paquet Tor depuis le dépôt
+ dnf: name=tor state=present
+ when: ansible_pkg_mgr == "dnf"
+
+- name: Installation de paquets optionnels depuis le dépôt
+ yum: name={{ item }} state=present
+ with_items:
+ - tor-arm
+ - proxychains
+ when: ansible_distribution == "Fedora" and ansible_pkg_mgr == "yum"
+
+- name: Installation de paquets optionnels depuis le dépôt
+ dnf: name={{ item }} state=present
+ with_items:
+ - tor-arm
+ - proxychains
+ when: ansible_distribution == "Fedora" and ansible_pkg_mgr == "dnf"