---
  - name: Install IceCast2
    apt: pkg=icecast2 state=latest

  - name: Link Fallback Error MP3
    file: src="{{ www_base }}/resources/error.mp3" dest="/usr/share/icecast2/web/error.mp3" state=link

  - name: Remove problematic LiquidSoap plugins
    apt: pkg="{{ item }}" state=absent
    with_items:
     - liquidsoap-plugin-all
     - liquidsoap-plugin-opus

  - name: Install LiquidSoap
    apt: pkg="{{ item }}" install_recommends=yes state=latest
    with_items:
     - liquidsoap
     - liquidsoap-plugin-ogg
     - liquidsoap-plugin-vorbis
     - liquidsoap-plugin-lame
     - liquidsoap-plugin-flac
     - liquidsoap-plugin-icecast