mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-24 10:17:15 +08:00
Update pre.yml
This commit is contained in:
parent
f300164369
commit
c43a2e7773
@ -1 +1,23 @@
|
||||
- pause:
|
||||
prompt: |
|
||||
Choice Zabbix version:
|
||||
0: Zabbix5.4
|
||||
1: Zabbix5.2
|
||||
private: no
|
||||
Default:0
|
||||
register: zabbix_version_options
|
||||
|
||||
- set_fact:
|
||||
zabbix_version_meta:
|
||||
"0": "5.4"
|
||||
"1": "5.2"
|
||||
|
||||
- set_fact:
|
||||
zabbix_version: "{{zabbix_version_meta[zabbix_version_options.user_input]}}"
|
||||
|
||||
- debug:
|
||||
msg: "zabbix_version is {{zabbix_version}}"
|
||||
|
||||
- name: Config .env for start containers
|
||||
shell: |
|
||||
sed -i 's/APP_VERSION=.*/APP_VERSION=v{{zabbix_version}}/g' {{installpath}}/{{appname}}/.env
|
||||
|
Loading…
Reference in New Issue
Block a user