--- - name: Yggdrasil packages become: yes package: name: - emby-server - perl-image-exiftool - ffmpeg - name: Yggdrasil directories become: yes file: path: "{{ item }}" state: directory owner: http group: http mode: 2750 loop: - /home/yggdrasil - /home/yggdrasil/Digital_Library - /home/yggdrasil/Music - /home/yggdrasil/Videos - /home/yggdrasil/Videos/Shows - /home/yggdrasil/Videos/Movies - /home/yggdrasil/Software - name: LiveTV channels command: /bin/bash -c "curl -s https://raw.githubusercontent.com/iptv-org/iptv/master/streams/us.m3u | grep -A 1 -E '{{ iptv_location }}' 2>&1 | grep -vE '^--$'" register: livetv_channels - name: Write to file become: yes copy: content: "{{ livetv_channels.stdout }}" dest: /var/lib/emby/local-channels.m3u owner: emby group: http mode: 0640