- 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//' | egrep -vi 'alpha|beta' args: executable: /usr/bin/zsh delegate_to: localhost register: namefedora - name: Vérifier la présence de tous les torrents shell: transmission-remote -l | grep '{{ item }}' args: executable: /usr/bin/zsh with_items: - "{{ namefedora.stdout_lines }}" register: result ignore_errors: yes - name: Mise à jour de transmission-daemon command: transmission-remote -a https://torrents.fedoraproject.org/torrents/'{{ item }}'.torrent with_items: - "{{ namefedora.stdout_lines }}" when: result is failed ignore_errors: yes