-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackages.yml
62 lines (50 loc) · 1.63 KB
/
packages.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
- hosts: all
gather_facts: False
vars:
- ansible_connection: ssh
- ansible_user: root
- ansible_python_interpreter: /home/root/.bin/python3
- ansible_ssh_pass: "{{ lookup('env','RM2_PASSWORD') }}"
tasks:
- name: Update packages
command:
cmd: /opt/bin/opkg update
- name: Install packages
command:
cmd: /opt/bin/opkg install ca-certificates wget
- name: Update packages again
command:
cmd: /opt/bin/opkg update
- name: Upgrade packages
command:
cmd: /opt/bin/opkg upgrade
- name: Install toltec
command:
cmd: /opt/bin/opkg install toltec-bootstrap
- name: fix paths
shell:
cmd: sed -i '/^\(export \)\?PATH="\?\$PATH:\/opt\/bin:\/opt\/sbin"\?$/d' /home/root/.bashrc
- name: fix paths
shell:
cmd: |
if [[ ! -e /home/root/.bashrc ]] || ! grep -q '^\(export \)\?PATH="\?/opt/bin:/opt/sbin:\$PATH"\?$' /home/root/.bashrc; then
cat >> /home/root/.bashrc << EOF
# Path added by Toltec bootstrap
PATH="/opt/bin:/opt/sbin:\$PATH"
EOF
fi
- name: Install other packages
command:
cmd: /opt/bin/opkg install remux oxide draft koreader harmony chessmarkable mines puzzles recrossable retris calculator plato
- name: Disable xochitl
command:
cmd: systemctl disable --now xochitl
- name: Disable oxide
command:
cmd: systemctl disable --now tarnish
- name: Disable draft
command:
cmd: systemctl disable --now draft
- name: Enable remux
command:
cmd: systemctl enable --now remux