summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthieu Saulnier <fantom@fedoraproject.org>2018-08-26 13:03:12 +0200
committerMatthieu Saulnier <fantom@fedoraproject.org>2018-08-26 13:03:12 +0200
commit153f612d069e2eb008d876736bd543da646ac672 (patch)
treec248757dbaec7705bb7a13c16841c47f3ad232ee
parent39c5f71be01a7bc52563852b1610bccfb9319bee (diff)
downloadplaybooks-ansible-153f612d069e2eb008d876736bd543da646ac672.tar.gz
playbooks-ansible-153f612d069e2eb008d876736bd543da646ac672.tar.xz
playbooks-ansible-153f612d069e2eb008d876736bd543da646ac672.zip
Fix config in bittorrent role
-rw-r--r--roles/bittorrent/tasks/config.yml4
-rw-r--r--roles/bittorrent/tasks/update.yml3
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