This commit is contained in:
qiaofeng1227 2022-05-17 17:14:07 +08:00
parent 9a284f0378
commit d2cc2a853d

View file

@ -13,8 +13,10 @@
- debug:
msg: "elk_delete_image is {{elk_delete_image}}"
- name: Config .env for start containers
shell: |
public_ip=`wget -O - https://download.websoft9.com/ansible/get_ip.sh | bash`
sed -i 's/APP_VERSION=.*/APP_VERSION=v{{erpnext_version}}/g' {{installpath}}/{{appname}}/.env
sed -i "s/erp.example.com/$public_ip/g" {{installpath}}/{{appname}}/.env
- name: Set vm.max_map_count=262144 for hosted machine, otherwise ES start error
become: yes
sysctl:
name: vm.max_map_count
value: 262144
state: present
reload: yes