-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpicons.yml
54 lines (54 loc) · 1.34 KB
/
picons.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
- hosts: all
tasks:
- name: Install all stuff needed to create picons
become: yes
apt:
pkg: "{{ item }}"
state: installed
update_cache: false
with_items:
- git
- binutils
- pngquant
- imagemagick
- librsvg2-bin
- jq
- name: Ensure target path(s) exist
become: yes
file:
path: "{{ picons_dir }}"
state: directory
mode: 0755
recurse: yes
- name: copy creation script
become: yes
copy:
src: picons.sh
dest: "{{ picons_dir }}/picons.sh"
mode: 0755
backup: no
- name: Create picons
become: yes
shell: "{{ picons_dir }}/picons.sh 2>&1 > {{ picons_dir }}/picons.log"
- name: Ensure Kodi's VNSI config path(s) exist
file:
path: "~/.kodi/userdata/addon_data/pvr.vdr.vnsi"
state: directory
recurse: yes
- name: create Kodi's VNSI config file
copy:
src: "{{ item }}"
dest: "~/.{{ item }}"
mode: 0644
backup: yes
force: no
with_items:
- kodi/userdata/addon_data/pvr.vdr.vnsi/settings.xml
- name: Configure picons path
lineinfile:
path: "~/.kodi/userdata/addon_data/pvr.vdr.vnsi/settings.xml"
regexp: '.*<setting id="iconpath".*'
line: '<setting id="iconpath" value="{{ picons_dir }}/vnsi" />'
backrefs: yes
backup: yes