2017-07-30 14:29:38 +02:00
|
|
|
- name: create kodi.service for the user session
|
|
|
|
template:
|
|
|
|
src: 'templates/kodi.service.j2'
|
|
|
|
dest: '{{ vdr.home }}/.config/systemd/user/kodi.service'
|
2017-07-31 08:44:27 +02:00
|
|
|
mode: 0644
|
2017-07-30 14:29:38 +02:00
|
|
|
owner: '{{ vdr.user }}'
|
|
|
|
group: '{{ vdr.group }}'
|
|
|
|
|
|
|
|
- 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
|
|
|
|
|
|
|
|
- name: copy Lircmap.xml if it does not exist yet
|
|
|
|
copy:
|
|
|
|
dest: '{{ vdr.home }}/.kodi/userdata/Lircmap.xml'
|
|
|
|
src: 'files/userdata/Lircmap.xml'
|
|
|
|
owner: '{{ vdr.user }}'
|
|
|
|
group: '{{ vdr.group }}'
|
|
|
|
mode: "0664"
|
|
|
|
force: no
|
|
|
|
|
2017-09-12 09:37:56 +02:00
|
|
|
- name: copy remote.xml if it does not exist yet
|
2017-07-30 14:29:38 +02:00
|
|
|
copy:
|
|
|
|
dest: '{{ vdr.home }}/.kodi/userdata/keymaps/remote.xml'
|
|
|
|
src: 'files/userdata/keymaps/remote.xml'
|
|
|
|
owner: '{{ vdr.user }}'
|
|
|
|
group: '{{ vdr.group }}'
|
|
|
|
mode: "0664"
|
|
|
|
force: no
|
|
|
|
# TODO: Add configuration files
|