2017-06-20 15:09:15 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: apt | install kodi packages
|
|
|
|
apt:
|
|
|
|
name: '{{ item }}'
|
|
|
|
state: present
|
|
|
|
install_recommends: no
|
|
|
|
with_items:
|
|
|
|
- kodi
|
|
|
|
- kodi-pvr-vdr-vnsi
|
|
|
|
- kodi-eventclients-xbmc-send
|
|
|
|
|
|
|
|
- name: create kodi.service for the user session
|
|
|
|
template:
|
|
|
|
src: 'templates/kodi.service.j2'
|
|
|
|
dest: '{{ vdr.home }}/.config/systemd/user/kodi.service'
|
|
|
|
mode: 0755
|
|
|
|
owner: '{{ vdr.user }}'
|
|
|
|
group: '{{ vdr.group }}'
|
2017-07-08 13:37:35 +02:00
|
|
|
|
|
|
|
- name: create kodi user directory
|
|
|
|
file:
|
|
|
|
dest: '{{ vdr.home }}/{{ item }}'
|
|
|
|
state: directory
|
|
|
|
owner: '{{ vdr.user }}'
|
|
|
|
group: '{{ vdr.group }}'
|
|
|
|
mode: "0775"
|
|
|
|
with_items:
|
|
|
|
- .kodi
|
|
|
|
- .kodi/userdata
|
|
|
|
- .kodi/userdata/keymaps
|
|
|
|
|
|
|
|
# TODO: Add configuration files
|