Hi! I would like to use the curl command in “command”, but due to the fact that there are double and single quotes, I get an error all the time, how can I fix it? (The problem is in the curl request)
template {
source = "/opt/consul-template/templates/mmm.ctmpl"
destination = "/etc/ssl/private/mmm.com.pem"
command = "if haproxy -c -f /etc/haproxy/haproxy.cfg; then systemctl reload haproxy && curl -d ‘{“token”:“123456”, “text”:“value2"}’ -H “Content-Type: application/json” -X POST https://blabla.com/; else systemctl stop consul-template;fi"}