---
- hosts: torrent
  tasks:
    - name: Install Transmission
      pkgng: name=transmission-daemon state=present
    - name: Allow all ip
      copy: src=/usr/local/etc/transmission/home/settings.json dest=/usr/local/etc/transmission/home/settings.json
    - name: Start Transmission
      service: name=transmission state=restarted

    - name: Install newsgroup server
      pkgng: name=sabnzbdplus state=present
    - name: Config file
      copy: src=/usr/local/sabnzbd/sabnzbd.ini dest=/usr/local/sabnzbd/sabnzbd.ini
    - name: Start newsgroup server
      service: name=sabnzbd state=restarted
