websoft9/apps/roles/bt/tasks/pre.yml

20 lines
392 B
YAML
Raw Normal View History

2022-07-25 11:31:57 +08:00
- pause:
prompt: |
Choice Baota version:
0: Baota English version
1: Baota Chinese version
private: no
Default:0
register: baota_version_options
- set_fact:
baota_version_meta:
2022-11-08 09:01:23 +08:00
"0": "en"
"1": "zh"
2022-07-25 11:31:57 +08:00
- set_fact:
2022-11-08 10:00:33 +08:00
bt_language: "{{baota_version_meta[baota_version_options.user_input]}}"
2022-07-25 11:31:57 +08:00
- debug:
2022-11-08 10:00:49 +08:00
msg: "bt_language is {{bt_language}}"