Kapisi/roles/Yggdrasil/tasks/main.yml

38 lines
877 B
YAML
Raw Normal View History

2020-10-08 16:33:19 -05:00
---
- name: Yggdrasil packages
become: yes
package:
name:
- emby-server
2022-07-02 10:24:10 -05:00
- name: Yggdrasil directories
2020-10-08 16:33:19 -05:00
become: yes
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
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 '^--$'"
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