I want to change one line of my code in file /var/www/kibana/config.js during installation from
elasticsearch: \"http://\"+window.location.hostname+\":9200\"
Just keep the colon in quotes separately -
regexp="(elasticsearch.* \"http.*)$" line="elasticsearch':' \" {{ elasticsearch_URL }}:{{ elasticsearch_port }} \" "