Update pre.yml

This commit is contained in:
qiaofeng1227 2022-07-26 09:21:13 +08:00 committed by GitHub
parent fafa075550
commit 26e388fac6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,12 @@
- pause:
prompt: |
Choice Zabbix version:
0: Zabbix5.4
1: Zabbix5.2
0: Zabbix6.0
1: Zabbix5.4
2: Zabbix5.2
3: Zabbix5.0
4: Zabbix4.0
5: Zabbix3.0
private: no
Default:0
register: zabbix_version_options
@ -11,6 +15,9 @@
zabbix_version_meta:
"0": "5.4"
"1": "5.2"
"2": "5.0"
"3": "4.0"
"4": "3.0"
- set_fact:
zabbix_version: "{{zabbix_version_meta[zabbix_version_options.user_input]}}"