-
Notifications
You must be signed in to change notification settings - Fork 6
/
RetroCRT.yml
522 lines (479 loc) · 24 KB
/
RetroCRT.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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
---
##############################################################################
# This file is part of RetroCRT (https://github.com/xovox/RetroCRT)
#
# RetroCRT is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# RetroCRT is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with RetroCRT. If not, see <https://www.gnu.org/licenses/>.
##############################################################################
- hosts: "localhost"
connection: "local"
become_user: "root"
# become: "yes"
handlers:
- name: "Save Console Font"
shell: setupcon --save-only
become: "yes"
listen: "setupcon"
pre_tasks:
- name: "Ensure /boot/retrocrt Exists"
file:
path: "/boot/retrocrt"
state: "directory"
become: "yes"
- name: "Reading RetroCRT Env Vars"
set_fact:
tv_region: "{{ lookup('env', 'tv_region') }}"
retrocrt_timings: "{{ lookup('env', 'retrocrt_timings') }}"
rotate_crt: "{{ lookup('env', 'rotate_crt') }}"
rotate_es: "{{ lookup('env', 'rotate_es') }}"
rotate_ra: "{{ lookup('env', 'rotate_ra') }}"
dpi_output_format: "{{ lookup('env', 'dpi_output_format') }}"
home_dir: "{{ lookup('env', 'HOME') }}"
physical_viewport_width: 1920
physical_viewport_height: 240
virtual_viewport_width: 320
handheld_multiplier: 6
install_optional_themes: "yes"
#physical_viewport_width: "{{ lookup('env', 'physical_viewport_width') }}"
#physical_viewport_height: "{{ lookup('env', 'physical_viewport_height') }}"
#physical_viewport_width: "{{ lookup('env', 'physical_viewport_width') }}"
- name: "Read /boot/retrocrt/retrocrt.yml"
include_vars:
dir: "/boot/retrocrt"
files_matching: "retrocrt.yaml"
- name: "Set Default Timings"
set_fact:
default_timings: "{{ lookup('file', '{{ retrocrt_timings }}/low_res') }}"
- name: "Find / UUID"
command: "findmnt --noheadings --output PARTUUID /"
register: root_uuid
become: "yes"
- name: "Find / Filesystem Type"
command: "findmnt --noheadings --output FSTYPE /"
register: root_fstype
become: "yes"
- name: "Check for First-Run"
stat:
path: "{{home_dir}}/.retrocrtrun"
register: first_run
# - name: "Resolution: Handheld Multiplier"
# set_fact:
# handheld_multiplier: "{{ (physical_viewport_width / virtual_viewport_width) | int }}"
- name: "Resolution: Get Info"
set_fact:
arcade_height: 240
amiga_height: 240
atari2600_height: 210
atari5200_height: 240
atari7800_height: 223
coleco_height: 192
fba_height: 240
fds_height: 224
intellivision_height: 192
mame_libretro_height: 240
mastersystem_height: 192
megadrive_height: 224
msx_height: 240
n64_height: 240
neogeo_height: 224
nes_height: 224
pcengine_height: 240
psx_height: 240
sega32x_height: 240
segacd_height: 224
snes_height: 224
atarilynx_width: "{{ 160 * handheld_multiplier }}"
atarilynx_height: 102
gamegear_width: "{{ 160 * handheld_multiplier }}"
gamegear_height: 144
gba_width: "{{ 240 * handheld_multiplier }}"
gba_height: 160
gbc_width: "{{ 160 * handheld_multiplier }}"
gbc_height: 144
gb_width: "{{ 160 * handheld_multiplier }}"
gb_height: 144
ngpc_width: "{{ 160 * handheld_multiplier }}"
ngpc_height: 152
ngp_width: "{{ 160 * handheld_multiplier }}"
ngp_height: 152
virtualboy_width: 1920
virtualboy_height: 224
wonderswancolor_width: "{{ 224 * handheld_multiplier }}"
wonderswancolor_height: 144
wonderswan_width: "{{ 224 * handheld_multiplier }}"
wonderswan_height: 144
- name: "Resolution: Console/Arcade Multiplier"
set_fact:
arcade_percentage: "{{ arcade_height / physical_viewport_height | float }}"
amiga_percentage: "{{ amiga_height / physical_viewport_height | float }}"
atari2600_percentage: "{{ atari2600_height / physical_viewport_height | float }}"
atari5200_percentage: "{{ atari5200_height / physical_viewport_height | float }}"
atari7800_percentage: "{{ atari7800_height / physical_viewport_height | float }}"
coleco_percentage: "{{ coleco_height / physical_viewport_height | float }}"
fba_percentage: "{{ fba_height / physical_viewport_height | float }}"
fds_percentage: "{{ fds_height / physical_viewport_height | float }}"
intellivision_percentage: "{{ intellivision_height / physical_viewport_height | float }}"
mame_libretro_percentage: "{{ mame_libretro_height / physical_viewport_height | float }}"
mastersystem_percentage: "{{ mastersystem_height / physical_viewport_height | float }}"
megadrive_percentage: "{{ megadrive_height / physical_viewport_height | float }}"
msx_percentage: "{{ msx_height / physical_viewport_height | float }}"
n64_percentage: "{{ n64_height / physical_viewport_height | float }}"
neogeo_percentage: "{{ neogeo_height / physical_viewport_height | float }}"
nes_percentage: "{{ nes_height / physical_viewport_height | float }}"
pcengine_percentage: "{{ pcengine_height / physical_viewport_height | float }}"
psx_percentage: "{{ psx_height / physical_viewport_height | float }}"
sega32x_percentage: "{{ sega32x_height / physical_viewport_height | float }}"
segacd_percentage: "{{ segacd_height / physical_viewport_height | float }}"
snes_percentage: "{{ snes_height / physical_viewport_height | float }}"
- name: "Resolution: Calc Console/Arcade X"
set_fact:
arcade_width: "{{ (physical_viewport_width * arcade_percentage | float) | int}}"
amiga_width: "{{ (physical_viewport_width * amiga_percentage | float) | int}}"
atari2600_width: "{{ (physical_viewport_width * atari2600_percentage | float) | int}}"
atari5200_width: "{{ (physical_viewport_width * atari5200_percentage | float) | int}}"
atari7800_width: "{{ (physical_viewport_width * atari7800_percentage | float) | int}}"
coleco_width: "{{ (physical_viewport_width * coleco_percentage | float) | int}}"
fba_width: "{{ (physical_viewport_width * fba_percentage | float) | int}}"
fds_width: "{{ (physical_viewport_width * fds_percentage | float) | int}}"
intellivision_width: "{{ (physical_viewport_width * intellivision_percentage | float) | int}}"
mame_libretro_width: "{{ (physical_viewport_width * mame_libretro_percentage | float) | int}}"
mastersystem_width: "{{ (physical_viewport_width * mastersystem_percentage | float) | int}}"
megadrive_width: "{{ (physical_viewport_width * megadrive_percentage | float) | int}}"
msx_width: "{{ (physical_viewport_width * msx_percentage | float) | int}}"
n64_width: "{{ (physical_viewport_width * n64_percentage | float) | int}}"
neogeo_width: "{{ (physical_viewport_width * neogeo_percentage | float) | int}}"
nes_width: "{{ (physical_viewport_width * nes_percentage | float) | int}}"
pcengine_width: "{{ (physical_viewport_width * pcengine_percentage | float) | int}}"
psx_width: "{{ (physical_viewport_width * psx_percentage | float) | int}}"
sega32x_width: "{{ (physical_viewport_width * sega32x_percentage | float) | int}}"
segacd_width: "{{ (physical_viewport_width * segacd_percentage | float) | int}}"
snes_width: "{{ (physical_viewport_width * snes_percentage | float) | int}}"
tasks:
- name: "Linux Console Font"
lineinfile:
dest: "/etc/default/console-setup"
create: "no"
backup: "yes"
state: "present"
regexp: "^{{ item.variable }}.*"
line: '{{ item.variable }}="{{ item.value }}"'
with_items:
- { variable: "FONTFACE", value: "Terminus" }
- { variable: "FONTSIZE", value: "6x12" }
become: "yes"
notify: "setupcon"
- name: "Populate Templates"
template:
src: "templates/{{ item.src }}"
dest: "{{ item.dest }}"
backup: "yes"
mode: "{{ item.mode }}"
with_items:
- { src: "cmdline.txt.j2", dest: "/boot/cmdline.txt", mode: "755" }
become: "yes"
- name: "Update /boot/config.txt"
lineinfile:
dest: "/boot/config.txt"
create: "yes"
backup: "yes"
state: "present"
regexp: "^{{ item.variable }}.*"
line: "{{ item.variable }}={{ item.value }}"
with_items:
- { variable: "force_turbo", value: "0" }
- { variable: "disable_audio_dither", value: "1" }
- { variable: "audio_pwm_mode", value: "0" }
- { variable: "dtoverlay", value: "dpi24" }
- { variable: "enable_dpi_lcd", value: "1" }
- { variable: "display_default_lcd", value: "1" }
- { variable: "dpi_group", value: "2" }
- { variable: "dpi_mode", value: "87" }
- { variable: "disable_splash", value: "1" }
- { variable: "hdmi_timings", value: "{{ default_timings }}" }
- { variable: "dpi_output_format", value: "{{ dpi_output_format }}" }
become: "yes"
- name: "Sync Directories"
ansible.posix.synchronize:
mode: push
src: "{{ item.src }}"
dest: "{{ item.dest }}"
rsync_opts:
- "--backup"
- "--suffix=.{{ansible_date_time.epoch}}"
with_items:
- { src: "files/retropie/", dest: "/opt/retropie/configs/" }
- name: "Copy Files from ./files"
copy:
force: "{{ item.force }}"
src: "files/{{ item.src }}"
dest: "{{ item.dest }}"
owner: "{{ item.owner }}"
group: "{{ item.group }}"
mode: "{{ item.mode }}"
with_items:
- { src: "autostart.sh", dest: "/opt/retropie/configs/all/autostart.sh", force: "yes", mode: "755", owner: "pi", group: "pi" }
- { src: "RetroCRT.mp4", dest: "/opt/retropie/supplementary/splashscreen/", force: "yes", mode: "644", owner: "pi", group: "pi" }
- { src: "RetroCRT.sh", dest: "{{ home_dir }}/RetroPie/retropiemenu/", force: "yes", mode: "755", owner: "pi", group: "pi" }
become: "yes"
- name: "Perform First-Run Copies"
ansible.posix.synchronize:
mode: push
rsync_opts:
- "--exclude=README.md"
src: "{{ item.src }}"
dest: "{{ item.dest }}"
with_items:
- { src: "files/roms/", dest: "{{home_dir}}/RetroPie/roms/" }
- { src: "files/splashscreen.list", dest: "/etc/splashscreen.list" }
when: first_run.stat.exists == False
become: "yes"
- name: "Console/Arcade: Write Configuration"
blockinfile:
path: "/opt/retropie/configs/{{ item.sys }}/retroarch.cfg"
create: "no"
backup: "yes"
insertbefore: "^#include"
marker: "# {mark} RetroCRT Critical DO NOT TOUCH"
block: |
custom_viewport_height = {{ item.y }}
custom_viewport_width = {{ item.x }}
ignore_errors: "yes"
with_items:
- { sys: "arcade", y: "{{ arcade_height }}", x: "{{ arcade_width }}" }
- { sys: "amiga", y: "{{ amiga_height }}", x: "{{ amiga_width }}" }
- { sys: "atari2600", y: "{{ atari2600_height }}", x: "{{ atari2600_width }}" }
- { sys: "atari5200", y: "{{ atari5200_height }}", x: "{{ atari5200_width }}" }
- { sys: "atari7800", y: "{{ atari7800_height }}", x: "{{ atari7800_width }}" }
- { sys: "coleco", y: "{{ coleco_height }}", x: "{{ coleco_width }}" }
- { sys: "fba", y: "{{ fba_height }}", x: "{{ fba_width }}" }
- { sys: "fds", y: "{{ fds_height }}", x: "{{ fds_width }}" }
- { sys: "intellivision", y: "{{ intellivision_height }}", x: "{{ intellivision_width }}" }
- { sys: "mame-libretro", y: "{{ mame_libretro_height }}", x: "{{ mame_libretro_width }}" }
- { sys: "mastersystem", y: "{{ mastersystem_height }}", x: "{{ mastersystem_width }}" }
- { sys: "megadrive", y: "{{ megadrive_height }}", x: "{{ megadrive_width }}" }
- { sys: "msx", y: "{{ msx_height }}", x: "{{ msx_width }}" }
- { sys: "n64", y: "{{ n64_height }}", x: "{{ n64_width }}" }
- { sys: "neogeo", y: "{{ neogeo_height }}", x: "{{ neogeo_width }}" }
- { sys: "nes", y: "{{ nes_height }}", x: "{{ nes_width }}" }
- { sys: "pcengine", y: "{{ pcengine_height }}", x: "{{ pcengine_width }}" }
- { sys: "psx", y: "{{ psx_height }}", x: "{{ psx_width }}" }
- { sys: "sega32x", y: "{{ sega32x_height }}", x: "{{ sega32x_width }}" }
- { sys: "segacd", y: "{{ segacd_height }}", x: "{{ segacd_width }}" }
- { sys: "snes", y: "{{ snes_height }}", x: "{{ snes_width }}" }
- name: "Handheld: Write Configuration"
blockinfile:
path: "/opt/retropie/configs/{{ item.sys }}/retroarch.cfg"
create: "yes"
backup: "yes"
insertbefore: "^#include"
block: |
custom_viewport_height = {{ item.y }}
custom_viewport_width = {{ item.x }}
with_items:
- { sys: "atarilynx", y: "{{ atarilynx_height }}", x: "{{ atarilynx_width }}" }
- { sys: "gamegear", y: "{{ gamegear_height }}", x: "{{ gamegear_width }}" }
- { sys: "gba", y: "{{ gba_height }}", x: "{{ gba_width }}" }
- { sys: "gbc", y: "{{ gbc_height }}", x: "{{ gbc_width }}" }
- { sys: "gb", y: "{{ gb_height }}", x: "{{ gb_width }}" }
- { sys: "ngpc", y: "{{ ngpc_height }}", x: "{{ ngpc_width }}" }
- { sys: "ngp", y: "{{ ngp_height }}", x: "{{ ngp_width }}" }
- { sys: "virtualboy", y: "{{ virtualboy_height }}", x: "{{ virtualboy_width }}" }
- { sys: "wonderswancolor", y: "{{ wonderswancolor_height }}", x: "{{ wonderswancolor_width }}" }
- { sys: "wonderswan", y: "{{ wonderswan_height }}", x: "{{ wonderswan_width }}" }
- name: "RetroArch: Write Global Configuration"
lineinfile:
dest: "/opt/retropie/configs/all/retroarch.cfg"
create: "yes"
backup: "yes"
state: "present"
regexp: "^{{ item.variable }}.*"
line: "{{ item.variable }} = {{ item.value }}"
with_items:
- { variable: "aspect_ratio_index", value: "23" }
- { variable: "custom_viewport_height", value: "{{ physical_viewport_height }}" }
- { variable: "custom_viewport_width", value: "{{ physical_viewport_width }}" }
- { variable: "libretro_log_level", value: "3" }
- { variable: "log_verbosity", value: "true" }
- { variable: "menu_enable_widgets", value: "false" }
- { variable: "menu_rgui_shadows", value: "true" }
- { variable: "menu_show_advanced_settings", value: "true" }
- { variable: "rgui_aspect_ratio_lock", value: "3" }
- { variable: "rgui_background_filler_thickness_enable", value: "false" }
- { variable: "rgui_border_filler_enable", value: "false" }
- { variable: "rgui_menu_color_theme", value: "6" }
- { variable: "video_font_enable", value: "false" }
- { variable: "video_fullscreen", value: "true" }
- { variable: "video_hard_sync", value: "true" }
- { variable: "video_refresh_rate", value: "59.73" }
- { variable: "video_scale_integer", value: "true" }
- { variable: "video_smooth", value: "false" }
- { variable: "video_threaded", value: "true" }
- { variable: "video_vsync", value: "true" }
- name: "Ensure es_settings.cfg Exists"
lineinfile:
path: "/opt/retropie/configs/all/emulationstation/es_settings.cfg"
state: "present"
line: "<?xml version=\"1.0\"?>"
owner: "pi"
group: "pi"
mode: "755"
create: "yes"
become: "yes"
- name: "Perform First-Run Edits es_settings.cfg"
lineinfile:
dest: "/opt/retropie/configs/all/emulationstation/es_settings.cfg"
create: "yes"
state: "present"
regexp: "<{{ item.type}} name=\"{{ item.name }}\".*"
line: "<{{ item.type }} name=\"{{ item.name }}\" value=\"{{ item.value }}\" \/>"
backup: "yes"
with_items:
- { type: "string", name: "ThemeSet", value: "RetroCRT-240p-Rainbow" }
- { type: "string", name: "TransitionStyle", value: "instant" }
- { type: "bool", name: "EnableSounds", value: "false" }
- { type: "bool", name: "ScreenSaverVideoMute", value: "true" }
- { type: "bool", name: "VideoAudio", value: "false" }
- { type: "bool", name: "VideoOmxPlayer", value: "true" }
when: first_run.stat.exists == False
# I should probably learn the Ansible XML stuff at some point
# - name: "Update ES Configs"
# community.general.xml:
# path: "{{ item.path }}"
# xpath: "{{ item.xpath }}"
# value: "{{ item.value }}"
# with_items:
# - {
# path: "/opt/retropie/configs/all/emulationstation/es_settings.cfg",
# xpath: "/string/@ThemeSet",
# value: ""
# }
# when: first_run.stat.exists == False
- name: "Themes: Delete Non-Supported"
file:
path: "/etc/emulationstation/themes/{{ item.theme }}"
state: "absent"
with_items:
- { theme: "carbon" }
- { theme: "carbon-2021" }
become: "yes"
- name: "Theme: RetroCRT Install/Update"
git:
depth: 1
repo: "https://github.com/{{ item.repo }}"
dest: "/etc/emulationstation/themes/{{ item.theme }}"
with_items:
- { theme: "RetroCRT-240p", repo: "xovox/es-theme-RetroCRT-240p" }
- { theme: "RetroCRT-240p-Rainbow", repo: "xovox/es-theme-RetroCRT-240p-Rainbow" }
- { theme: "RetroCRT-240p-Vertical", repo: "xovox/es-theme-RetroCRT-240p-Vertical" }
become: "yes"
ignore_errors: "yes"
# - name: "Theme: Additional Install/Update"
# git:
# depth: 1
# repo: "https://github.com/{{ item.repo }}"
# dest: "/etc/emulationstation/themes/{{ item.theme }}"
# with_items:
# - { theme: "GBZ35 Dark", repo: "rxbrad/es-theme-gbz35-dark" }
# - { theme: "Pixel Heaven", repo: "skeletoooooor/es-pixel-heaven" }
# - { theme: "Art Book", repo: "anthonycaccese/es-theme-art-book-4-3" }
# - { theme: "Free Play", repo: "rxbrad/es-theme-freeplay" }
# - { theme: "Comic Book Wheel Art", repo: "TMNTturtleguy/es-theme-ComicBook_4-3_SE-Wheelart" }
# - { theme: "Comic Book", repo: "TMNTturtleguy/es-theme-ComicBook_4-3" }
# - { theme: "Turtle Mini", repo: "Omnija/es-theme-simpler-turtlemini" }
# - { theme: "Arcade CRT", repo: "andreamav/es-theme-arcade-crt" }
# - { theme: "Arcade CRT 2020", repo: "andreamav/es-theme-arcade-crt2020" }
#when:
# - install_optional_themes == "yes"
# ignore_errors: "yes"
# become: "yes"
- name: "Ensure runcommand scripts exist"
lineinfile:
path: "/opt/retropie/configs/all/runcommand-on{{ item.scriptname }}.sh"
state: "present"
line: "#!/bin/bash"
owner: "root"
group: "root"
mode: "755"
create: "yes"
with_items:
- { scriptname: "start" }
- { scriptname: "end" }
become: "yes"
- name: "Update runcommand-onstart.sh"
blockinfile:
block: "{{ lookup('file', './files/runcommand-onstart.sh') }}"
dest: "/opt/retropie/configs/all/runcommand-onstart.sh"
backup: "yes"
marker: "# {mark} RetroCRT Critical DO NOT TOUCH"
insertafter: "EOF"
become: "yes"
- name: "Update runcommand-onend.sh"
blockinfile:
block: "{{ lookup('file', './files/runcommand-onend.sh') }}"
dest: "/opt/retropie/configs/all/runcommand-onend.sh"
backup: "yes"
marker: "# {mark} RetroCRT Critical DO NOT TOUCH"
insertafter: "EOF"
become: "yes"
- name: "Install Required Packages"
apt:
name: [ 'bc', 'dos2unix', 'p7zip-full', 'vim' ]
update_cache: true
state: present
become: "yes"
ignore_errors: "yes"
- name: "Console Font: Write Configuration"
lineinfile:
dest: "/etc/default/console-setup"
create: "no"
backup: "yes"
state: "present"
regexp: "^{{ item.variable }}.*"
line: '{{ item.variable }}="{{ item.value }}"'
with_items:
- { variable: "FONTFACE", value: "Terminus" }
- { variable: "FONTSIZE", value: "6x12" }
become: "yes"
notify: "setupcon"
- name: "Mark Our First Run"
ansible.builtin.file:
path: "{{home_dir}}/.retrocrtrun"
state: touch
mode: u=rw,g=r,o=r
# - name: "Disable Swap File"
# service:
# name: "dphys-swapfile"
# enabled: "no"
# state: stopped
# become: "yes"
# - name: "Fix Permissions"
# file:
# path: "{{ item }}"
# state: "directory"
# owner: "pi"
# group: "pi"
# recurse: "yes"
# with_items:
# - "/etc/emulationstation/themes"
# - "/opt/retropie"
# - "{{home_dir}}"
# become: "yes"
# - name: "Auto-Login Symlink"
# file:
# src: "/etc/systemd/system/[email protected]"
# dest: "/etc/systemd/system/getty.target.wants/[email protected]"
# owner: "root"
# group: "root"
# state: "link"
# force: "yes"
# become: "yes"