mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-02-03 09:48:38 +08:00
elk
This commit is contained in:
parent
9a284f0378
commit
d2cc2a853d
@ -13,8 +13,10 @@
|
|||||||
- debug:
|
- debug:
|
||||||
msg: "elk_delete_image is {{elk_delete_image}}"
|
msg: "elk_delete_image is {{elk_delete_image}}"
|
||||||
|
|
||||||
- name: Config .env for start containers
|
- name: Set vm.max_map_count=262144 for hosted machine, otherwise ES start error
|
||||||
shell: |
|
become: yes
|
||||||
public_ip=`wget -O - https://download.websoft9.com/ansible/get_ip.sh | bash`
|
sysctl:
|
||||||
sed -i 's/APP_VERSION=.*/APP_VERSION=v{{erpnext_version}}/g' {{installpath}}/{{appname}}/.env
|
name: vm.max_map_count
|
||||||
sed -i "s/erp.example.com/$public_ip/g" {{installpath}}/{{appname}}/.env
|
value: 262144
|
||||||
|
state: present
|
||||||
|
reload: yes
|
||||||
|
Loading…
Reference in New Issue
Block a user