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
e20cb1db05
commit
38a8a528f6
@ -1 +1,35 @@
|
||||
- pause:
|
||||
prompt: |
|
||||
Choice Neo4j version:
|
||||
0: Neo4j latest
|
||||
1: Neo4j 4.4
|
||||
2: Neo4j 4.3
|
||||
3: Neo4j 4.2
|
||||
4: Neo4j 4.1
|
||||
5: Neo4j 4.0
|
||||
6: Neo4j 3.5
|
||||
7: Neo4j 3.4
|
||||
private: no
|
||||
Default:0
|
||||
register: neo4j_version_options
|
||||
|
||||
- set_fact:
|
||||
neo4j_version_meta:
|
||||
"0": "latest"
|
||||
"1": "4.4"
|
||||
"2": "4.3"
|
||||
"3": "4.2"
|
||||
"4": "4.1"
|
||||
"5": "4.0"
|
||||
"6": "3.5"
|
||||
"7": "3.4"
|
||||
|
||||
- set_fact:
|
||||
neo4j_version: "{{neo4j_version_meta[neo4j_version_options.user_input]}}"
|
||||
|
||||
- debug:
|
||||
msg: "neo4j_version is {{neo4j_version}}"
|
||||
|
||||
- name: Config .env for start containers
|
||||
shell: |
|
||||
sed -i 's/APP_VERSION=.*/APP_VERSION={{neo4j_version}}/g' {{installpath}}/{{appname}}/.env
|
||||
|
Loading…
Reference in New Issue
Block a user