summaryrefslogtreecommitdiffstats
path: root/roles/torrelay/tasks
diff options
context:
space:
mode:
authorMatthieu Saulnier <fantom@fedoraproject.org>2018-12-09 23:13:37 +0100
committerMatthieu Saulnier <fantom@fedoraproject.org>2018-12-09 23:13:37 +0100
commitbbbc7c9ae9493e4399b8c916bce32afc68c38c8e (patch)
tree6f2e64afb30d7bf98f4e538038006b423f898759 /roles/torrelay/tasks
parentae72e233d034efa9a992f448bc875ce3050ee84c (diff)
downloadplaybooks-ansible-bbbc7c9ae9493e4399b8c916bce32afc68c38c8e.tar.gz
playbooks-ansible-bbbc7c9ae9493e4399b8c916bce32afc68c38c8e.tar.xz
playbooks-ansible-bbbc7c9ae9493e4399b8c916bce32afc68c38c8e.zip
Add systemd unit timeout for tor service and cleanup old tasks
Diffstat (limited to 'roles/torrelay/tasks')
-rw-r--r--roles/torrelay/tasks/config.yml7
-rw-r--r--roles/torrelay/tasks/pkgs.yml7
-rw-r--r--roles/torrelay/tasks/selinux.yml7
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