-
Notifications
You must be signed in to change notification settings - Fork 2
/
playbook-xaaes.yml
113 lines (92 loc) · 3.98 KB
/
playbook-xaaes.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
- name: Build a ST Mint distribution using Xaaes
hosts: localhost
tasks:
- import_tasks: basemint_tasks.yml
- name: move out default xaaes kernel module
copy:
src: build/mint/{{ version }}/xaaes/xaaes.km
dest: build/mint/{{ version }}/xaaes/xaaes.km.bk
- name: uses ST xaaes kernel module to save a few kilobytes of RAM
# note that this disables background images :(((
# see https://github.com/freemint/freemint/blob/b24bbff682e325ed7757f281a66c3e867c918e6b/xaaes/src.km/xa_defs.h#L97
copy:
src: build/mint/{{ version }}/xaaes/xaaesst.km
dest: build/mint/{{ version }}/xaaes/xaaes.km
- name: creates a backup of the xaaes config file
command: mv build/mint/{{ version }}/xaaes/xaaes.cnf build/mint/{{ version }}/xaaes/xaaes.cnf.orig
args:
creates: build/mint/{{ version }}/xaaes/xaaes.cnf.orig
- name: convert xaaes config file to utf-8 so we can edit it with ansible
shell: iconv -f 437 -t utf-8 build/mint/{{ version }}/xaaes/xaaes.cnf.orig | sed -n '/^[^# ]/p' > build/mint/{{ version }}/xaaes/xaaes.cnf
args:
creates: build/mint/{{ version }}/xaaes/xaaes.cnf
- name: set xaaes resolution to ST High (640*400)
lineinfile:
path: build/mint/{{ version }}/xaaes/xaaes.cnf
line: 'video = 4'
- name: copy a background file for XAAES
copy:
src: resources/xaaes/640400.1/
dest: build/mint/{{ version }}/xaaes/640400.1
- name: copy a default INF file for teradesk
copy:
src: resources/XAAES.INF
dest: build/mint/{{ version }}/xaaes/XAAES.INF
- name: create defaults directory
file:
path: build/mint/{{ version }}/sys-root/root/defaults
state: directory
- name: copy a configuration file for tos2win with tw100 as the default terminal type
copy:
src: resources/TOSWIN2.CFG
dest: build/mint/{{ version }}/sys-root/root/defaults/TOSWIN2.CFG
- name: copy a default configuration file for teradesk
copy:
src: resources/TERADESK.INF
dest: build/mint/{{ version }}/sys-root/opt/GEM/teradesk/TERADESK.INF
- name: disable all synthax highliting for qed editor to save RAM and speed startup
command: mv build/mint/{{ version }}/sys-root/opt/GEM/qed/syntax build/mint/{{ version }}/sys-root/opt/GEM/qed/syntax.off
args:
creates: build/mint/{{ version }}/sys-root/opt/GEM/qed/syntax.off
- name: remove floppy drive B from Desktop
replace:
path: "build/mint/{{ version }}/mint.cnf"
regexp : '^#FDC_HIDE_B=YES$'
replace: 'FDC_HIDE_B=YES'
- name: download command.tos minix disk image
get_url:
url: http://download.minix3.org/previous-versions/Atari/disk00
dest: "{{ playbook_dir }}/resources/disk00"
force: no
- name: extract command.tos shell
shell: MTOOLS_SKIP_CHECK=1 mcopy -i resources/disk00 ::command.tos resources/command.tos
args:
creates: resources/command.tos
- name: copy command.tos to 'extra' folder
loop:
- resources/command.tos
copy:
src: "{{ item }}"
dest: build/extra/
- name: download 2048 game
get_url:
url: https://ptonthat.fr/files/2048/2048_13c_68k.zip
dest: "{{ playbook_dir }}/resources/2048_13c_68k.zip"
force: no
- name: extract 2048
unarchive:
src: resources/2048_13c_68k.zip
dest: "{{ playbook_dir }}/resources"
creates: "{{ playbook_dir }}/resources/2048.68K/2048.APP"
- name: test if extracted 2048 files are readable
command: test -r {{ playbook_dir }}/resources/2048.68K/2048.APP
register: app_is_readable
changed_when: app_is_readable.rc != 0
ignore_errors: true
- name: fix 2048 zip permissions
when: app_is_readable.rc != 0
command: chmod -R ug+rw resources/2048.68K/
- name : copy 2048
command: cp -r resources/2048.68K build/extra/
args:
creates: build/extra/2048.68K