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

26 lines
576 B
YAML
Raw Normal View History

2022-05-12 14:33:59 +08:00
- pause:
prompt: |
Choice Erpnext version:
2022-07-01 08:06:24 +08:00
0: ERPNext14
1: ERPNext13
2: ERPNext12
2022-05-12 14:33:59 +08:00
private: no
Default:0
2022-07-19 14:59:47 +08:00
register: erpnext_version_options
2022-05-12 14:33:59 +08:00
2022-05-16 09:04:23 +08:00
- set_fact:
erpnext_version_meta:
2022-06-30 10:22:49 +08:00
"0": "14"
"1": "13"
"2": "12"
2022-05-16 09:04:23 +08:00
2022-05-13 14:47:35 +08:00
- set_fact:
2022-07-19 14:59:47 +08:00
erpnext_version: "{{erpnext_version_meta[erpnext_version_options.user_input]}}"
2022-05-13 14:47:35 +08:00
2022-05-16 08:56:34 +08:00
- debug:
msg: "erpnext_version is {{erpnext_version}}"
2022-05-12 14:33:59 +08:00
- name: Config .env for start containers
shell: |
2022-05-16 10:11:57 +08:00
sed -i 's/APP_VERSION=.*/APP_VERSION=v{{erpnext_version}}/g' {{installpath}}/{{appname}}/.env