更新时间:2022-06-20 04:07:37
你需要将整行包含在 "
中,其中出现 :
.
you need to enclose the entire line in "
, where :
appears.
lineinfile:
'dest=/var/www/kibana/config.js
backrefs=true
regexp="(elasticsearch.* \"http.*)$"
line="elasticsearch\: \ {{ elasticsearch_URL }}:{{ elasticsearch_port }} \ "
state=present'