diff options
Diffstat (limited to 'roles/torrelay/tasks/main.yml')
-rw-r--r-- | roles/torrelay/tasks/main.yml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/roles/torrelay/tasks/main.yml b/roles/torrelay/tasks/main.yml index 8a8fdda..b9d4c91 100644 --- a/roles/torrelay/tasks/main.yml +++ b/roles/torrelay/tasks/main.yml @@ -6,6 +6,13 @@ yum: name=tor state=present when: ansible_distribution == "Fedora" +- name: Création des répertoires de base + file: path=/usr/local/share/tor state=directory + +- name: Installation de la page d'accueil html + copy: src=tor-exit-notice.html dest=/usr/local/share/tor/tor-exit-notice.html + mode=644 + - name: Configuration du service template: src=torrc dest=/etc/tor/torrc owner=root @@ -13,5 +20,12 @@ mode=644 notify: restart tor +- name: Ouverture des ports Firewalld + firewalld: port={{ item[0] }} permanent={{ item[1] }} state=enabled + with_nested: + - [ '9001/tcp', '9030/tcp' ] + - [ 'true', 'false' ] + when: ansible_distribution == "Fedora" + - name: Activation et démarrage du relai Tor service: name=tor state=started enabled=yes |