diff options
author | Matthieu Saulnier <fantom@fedoraproject.org> | 2014-12-07 19:21:47 +0100 |
---|---|---|
committer | Matthieu Saulnier <fantom@fedoraproject.org> | 2014-12-07 19:21:47 +0100 |
commit | 4b1a56e5c70c3bdf716c5c13f69b558da02a7d91 (patch) | |
tree | bdaf7b0d14a84acd58024d0f088e6c9a988fd6bd /roles/torrelay/tasks | |
parent | c568cd9d90cb320c5039a244202c7df07591ba3f (diff) | |
download | playbooks-ansible-4b1a56e5c70c3bdf716c5c13f69b558da02a7d91.tar.gz playbooks-ansible-4b1a56e5c70c3bdf716c5c13f69b558da02a7d91.tar.xz playbooks-ansible-4b1a56e5c70c3bdf716c5c13f69b558da02a7d91.zip |
Create new role for Tor nodes
Diffstat (limited to 'roles/torrelay/tasks')
-rw-r--r-- | roles/torrelay/tasks/main.yml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/roles/torrelay/tasks/main.yml b/roles/torrelay/tasks/main.yml new file mode 100644 index 0000000..8a8fdda --- /dev/null +++ b/roles/torrelay/tasks/main.yml @@ -0,0 +1,17 @@ +- name: Installation du paquet Tor depuis torproject.org + yum: name=https://deb.torproject.org/torproject.org/rpm/el/{{ ansible_distribution_major_version }}/{{ ansible_architecture }}/tor-{{ versionupstream }}-tor.2.rh6_5.{{ ansible_architecture }}.rpm state=present + when: ansible_distribution == "CentOS" and ansible_distribution_major_version|int == 6 + +- name: Installation du paquet Tor depuis le dépôt + yum: name=tor state=present + when: ansible_distribution == "Fedora" + +- name: Configuration du service + template: src=torrc dest=/etc/tor/torrc + owner=root + group=root + mode=644 + notify: restart tor + +- name: Activation et démarrage du relai Tor + service: name=tor state=started enabled=yes |