From 153f612d069e2eb008d876736bd543da646ac672 Mon Sep 17 00:00:00 2001 From: Matthieu Saulnier Date: Sun, 26 Aug 2018 13:03:12 +0200 Subject: Fix config in bittorrent role --- roles/bittorrent/tasks/config.yml | 4 ++-- roles/bittorrent/tasks/update.yml | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/roles/bittorrent/tasks/config.yml b/roles/bittorrent/tasks/config.yml index 2c05df0..139ac84 100644 --- a/roles/bittorrent/tasks/config.yml +++ b/roles/bittorrent/tasks/config.yml @@ -23,7 +23,7 @@ command: transmission-remote --encryption-required - name: Activation LPD - command: transmission-remote --lds + command: transmission-remote -y - name: Nombre maximum de pairs command: transmission-remote --peers 1024 @@ -32,7 +32,7 @@ command: transmission-remote --no-portmap - name: Ouverture des ports Firewalld - firewalld: port=51413 permanent={{ item }} state=enabled + firewalld: port=51413/tcp permanent={{ item }} state=enabled with_items: - true - false diff --git a/roles/bittorrent/tasks/update.yml b/roles/bittorrent/tasks/update.yml index 44a8498..7d2be53 100644 --- a/roles/bittorrent/tasks/update.yml +++ b/roles/bittorrent/tasks/update.yml @@ -1,5 +1,5 @@ - name: Récupération de la liste des torrents disponibles - shell: torsocks curl -sS https://torrents.fedoraproject.org/torrents/ | grep torrent | grep -v Index | awk '{ print $6 }' | cut -d '"' -f2 | sed 's/.torrent//' + shell: torsocks curl -sS https://torrents.fedoraproject.org/torrents/ | grep torrent | grep -v Index | awk '{ print $6 }' | cut -d '"' -f2 | sed 's/.torrent//' | egrep -vi 'alpha|beta' args: executable: /usr/bin/zsh delegate_to: localhost @@ -19,3 +19,4 @@ with_items: - "{{ namefedora.stdout_lines }}" when: result is failed + ignore_errors: yes -- cgit