##################################################################### # {{ ansible_managed }} ##################################################################### [Unit] Description=Redis Twemproxy Template After=network.target [Service] WorkingDirectory=/redis Type=simple LimitNOFILE=65535 User=root ExecStart=/opt/consul-template/bin/consul-template -consul="{{ consul_server_nodes[0] }}:8500" -template '/etc/nutcracker.ctmpl:/etc/nutcracker.yml:/bin/systemctl restart twemproxy.service' StandardOutput=file:/var/log/consul-template-twemproxy.log StandardError=file:/var/log/consul-template-twemproxy-error.log [Install] WantedBy=multi-user.target Alias=twemproxy-template.service