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: - 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