diff options
author | Matthieu Saulnier <fantom@fedoraproject.org> | 2018-01-06 18:48:59 +0100 |
---|---|---|
committer | Matthieu Saulnier <fantom@fedoraproject.org> | 2018-01-06 18:48:59 +0100 |
commit | 9222b89e867d33923dc695088e2f995312f07cb8 (patch) | |
tree | 460ba7dd2a93a58b1bf63fd3e36fc8b9a0d3566e /roles/torrelay/tasks/pkgs.yml | |
parent | 52097b94aa3969f6345c6ef043f14fc78dfc8261 (diff) | |
download | playbooks-ansible-9222b89e867d33923dc695088e2f995312f07cb8.tar.gz playbooks-ansible-9222b89e867d33923dc695088e2f995312f07cb8.tar.xz playbooks-ansible-9222b89e867d33923dc695088e2f995312f07cb8.zip |
Split torreplay tasks into multiple files
Diffstat (limited to 'roles/torrelay/tasks/pkgs.yml')
-rw-r--r-- | roles/torrelay/tasks/pkgs.yml | 21 |
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" |