-
Notifications
You must be signed in to change notification settings - Fork 2
/
offloader.yml
120 lines (110 loc) · 2.35 KB
/
offloader.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
---
- name: Auxiliary Tools
hosts: offloader
tags:
- tmux
- speedtest
roles:
- tools-install
- hosts: offloader
roles:
- role: interfaces
- name: Install Docker Stuff
hosts: offloader
tags:
- docker
roles:
- docker-install
#TODO make sure /etc/network/interfaces only holds the dource-dir entry
- name: install and configure batman
hosts: offloader
tags:
- bat
- batman
- batman5
- batmanv5
- batman_v5
roles:
- batman-install
- name: install and configure fastd
hosts: offloader
tags:
- fastd
roles:
- fastd-install
- name: install and configure respondd
hosts: offloader
tags:
- respondd
roles:
- respondd-install
- name: fix dhcp client issues
hosts: offloader
tags:
- dhcp
roles:
- dhcpcd
vars:
dhcpcd_global_config:
- keyword: noipv4ll
- keyword: nogateway
state: absent
- keyword: denyinterfaces
value: "bat* vlan*"
- keyword: clientid
- keyword: duid
state: absent
- keyword: slaac
value: hwaddr
dhcpcd_interface_config:
- name: "{{ outbound_lan_interface }}"
config: |
"gateway"
"metric 0"
- name: "br-welt"
- name: "br-ffbsee"
- name: install and configure wifi AP
hosts: offloader_not
tags:
- wifi
- wlan
- hostapd
roles:
- wifi-ap
- name: install alfred-scripts for ffbsee
hosts: offloader
tags:
- alfred
- printmap
- print-map
roles:
- alfred-install
- name: install and activate kdump
hosts: offloader
tags:
- kdump
- crashdump
- coredump
- dump
roles:
- kdump
#tasks:
# configure raspberry pi kernel
# DEFAULT RASBIAN PI KERNEL DOES NOT SUPPORT THIS
#- name: configure kdump reserved RAM on the raspberry pi
# become: yes
# replace:
# path: /boot/cmdline.txt
# regexp: '((?s)^((?!crashkernel={{ kdump_crashkernel_mem }}).)*)\n$'
# replace: '\1 crashkernel={{ kdump_crashkernel_mem }}\n'
# when:
# - (ansible_distribution | lower) == 'debian'
- name: run unify docker container
hosts: offloader_crash
tags:
- docker
- unify
- unifi
tasks:
- command: "docker run --init -d --restart always --net=host -e TZ='Europe/Berlin' -v ~/unifi:/unifi --name unifi jacobalberty/unifi:latest"
#on arm :arm32v7