Create pre.yml

This commit is contained in:
qiaofeng1227 2022-11-16 08:57:33 +08:00 committed by GitHub
parent 6ef98dd4eb
commit 8f94ab6e5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,25 @@
- pause:
prompt: |
Choose the Desktop you want to install:
0: Don't install any Desktop
1: GNOME
2: KDE
3: Xfce
4: Mate
private: no
Default:0
register: os_desktop_options
- set_fact:
os_desktop_meta:
"0": ""
"1": "gnome"
"2": "kde"
"3": "xfce"
"4": "mate"
- set_fact:
os_desktop: "{{os_desktop_meta[os_desktop_options.user_input]}}"
- debug:
msg: "Now start to install os_desktop is {{os_desktop}}"