2020-10-08 16:33:19 -05:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Yggdrasil packages
|
|
|
|
become: yes
|
|
|
|
package:
|
2022-11-20 20:03:01 -06:00
|
|
|
name:
|
2020-10-08 16:33:19 -05:00
|
|
|
- emby-server
|
|
|
|
|
2022-07-02 10:24:10 -05:00
|
|
|
- name: Yggdrasil directories
|
2020-10-08 16:33:19 -05:00
|
|
|
become: yes
|
2022-11-20 20:03:01 -06:00
|
|
|
file:
|
2022-07-02 10:24:10 -05:00
|
|
|
path: "{{ item }}"
|
2020-10-08 16:33:19 -05:00
|
|
|
state: directory
|
|
|
|
owner: http
|
|
|
|
group: http
|
2022-07-02 10:24:10 -05:00
|
|
|
mode: 2750
|
|
|
|
loop:
|
|
|
|
- /srv/yggdrasil
|
|
|
|
- /srv/yggdrasil/Digital_Library
|
|
|
|
- /srv/yggdrasil/Music
|
|
|
|
- /srv/yggdrasil/Videos
|
|
|
|
- /srv/yggdrasil/Videos/Shows
|
|
|
|
- /srv/yggdrasil/Videos/Movies
|
|
|
|
- /srv/yggdrasil/Software
|
|
|
|
|
|
|
|
- name: LiveTV channels
|
2022-11-20 20:03:01 -06:00
|
|
|
command: /bin/bash -c "curl -s https://raw.githubusercontent.com/iptv-org/iptv/master/streams/us.m3u | egrep -A 1 '{{ iptv_location }}' 2>&1 | egrep -v '^--$'"
|
2022-07-02 10:24:10 -05:00
|
|
|
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
|