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

36 lines
788 B
YAML
Raw Normal View History

2022-07-25 14:15:20 +08:00
- pause:
prompt: |
Choice Neo4j version:
0: Neo4j latest
1: Neo4j 4.4
2: Neo4j 4.3
3: Neo4j 4.2
2023-05-09 14:19:49 +08:00
4: Neo4j 5.7
2023-02-02 09:01:39 +08:00
5: Neo4j 5.2
6: Neo4j 5.3
7: Neo4j 5.4
2022-07-25 14:15:20 +08:00
private: no
Default:0
register: neo4j_version_options
2022-07-15 08:56:27 +08:00
2022-07-25 14:15:20 +08:00
- set_fact:
neo4j_version_meta:
"0": "latest"
"1": "4.4"
"2": "4.3"
"3": "4.2"
2023-05-09 14:19:49 +08:00
"4": "5.7"
2023-02-02 09:01:39 +08:00
"5": "5.2"
"6": "5.3"
"7": "5.4"
2022-07-25 14:15:20 +08:00
- 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: |
2023-05-09 14:21:35 +08:00
sed -i 's/APP_VERSION=.*/APP_VERSION={{neo4j_version}}/g' {{installpath}}/{{appname}}/.env