diff options
Diffstat (limited to 'roles/torrelay/tasks')
-rw-r--r-- | roles/torrelay/tasks/config.yml | 7 | ||||
-rw-r--r-- | roles/torrelay/tasks/pkgs.yml | 7 | ||||
-rw-r--r-- | roles/torrelay/tasks/selinux.yml | 7 |
3 files changed, 12 insertions, 9 deletions
diff --git a/roles/torrelay/tasks/config.yml b/roles/torrelay/tasks/config.yml index ef21d81..f236881 100644 --- a/roles/torrelay/tasks/config.yml +++ b/roles/torrelay/tasks/config.yml @@ -1,3 +1,10 @@ +- name: Réglage du timeout du service systemd + copy: + src: tor.service + dest: /etc/systemd/system/tor.service + mode: 0644 + notify: reload systemd + - name: Configuration de proxychains copy: src: proxychains.conf diff --git a/roles/torrelay/tasks/pkgs.yml b/roles/torrelay/tasks/pkgs.yml index 67e9d1d..5a54ecd 100644 --- a/roles/torrelay/tasks/pkgs.yml +++ b/roles/torrelay/tasks/pkgs.yml @@ -7,13 +7,6 @@ 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 diff --git a/roles/torrelay/tasks/selinux.yml b/roles/torrelay/tasks/selinux.yml index 4141858..de256fd 100644 --- a/roles/torrelay/tasks/selinux.yml +++ b/roles/torrelay/tasks/selinux.yml @@ -36,5 +36,8 @@ when: semodulelist is failed - name: Configuration du booleen SELinux - seboolean: name=tor_can_network_relay state=yes persistent=yes - when: ansible_selinux.status != "disabled" and is_gardian is defined + seboolean: + name: tor_can_network_relay + state: yes + persistent: yes + when: ansible_selinux.status != "disabled" and orport is defined |