-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaybook.yml
72 lines (60 loc) · 1.71 KB
/
playbook.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
---
- hosts: RaspberryPi
vars_files:
- vars.yml
tasks:
- name: Check if modprobe file exists
stat:
path: /etc/modprobe.d/cfg80211.conf
register: stat_result
- name: Set modprob file file
become: yes
shell: echo "options cfg80211 ieee80211_regdom={{ region }}" > /etc/modprobe.d/cfg80211.conf
when: stat_result.stat.exists == False
- name: Install Regulatory DB for wifi settings
apt:
name: wireless-regdb
state: present
- name: Install iw
apt:
name: iw
state: present
- name: Install CRDA (Central Regulatory Domain Agent)
apt:
name: crda
state: present
- name: Get region/country status on device
command: /sbin/iw reg get
register: result
- name: Set region/country if not done
become: yes
command: /sbin/iw reg set {{ region }}
when: '"country 00" in result.stdout'
- name: Create destination directory
file:
path: /home/osmc/addons/
state: directory
owner: osmc
group: osmc
mode: 0775
- name: Copy Youtube addon To Kodi
copy:
src: AddOns/plugin.video.youtube-5.5.1.zip
dest: /home/osmc/addons/plugin.video.youtube-5.5.1.zip
owner: osmc
group: osmc
mode: 0775
- name: Copy DailyMotion addon To Kodi
copy:
src: AddOns/plugin.video.dailymotion-0.2.5.zip
dest: /home/osmc/addons/plugin.video.dailymotion-0.2.5.zip
owner: osmc
group: osmc
mode: 0775
- name: Copy Kodil repository To Kodi
copy:
src: AddOns/repository.kodil-1.0.1.zip
dest: /home/osmc/addons/repository.kodil-1.0.1.zip
owner: osmc
group: osmc
mode: 0775