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
|
2024-09-02 23:54:57 -05:00
|
|
|
- perl-image-exiftool
|
|
|
|
- ffmpeg
|
2020-10-08 16:33:19 -05:00
|
|
|
|
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:
|
2024-09-02 23:54:57 -05:00
|
|
|
- /home/yggdrasil
|
|
|
|
- /home/yggdrasil/Digital_Library
|
|
|
|
- /home/yggdrasil/Music
|
|
|
|
- /home/yggdrasil/Videos
|
|
|
|
- /home/yggdrasil/Videos/Shows
|
|
|
|
- /home/yggdrasil/Videos/Movies
|
|
|
|
- /home/yggdrasil/Software
|
2022-07-02 10:24:10 -05:00
|
|
|
|
|
|
|
- name: LiveTV channels
|
2024-09-02 23:54:57 -05:00
|
|
|
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 '^--$'"
|
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
|