On Friday, 21 September 2018 14.56.34 CEST Narahari 'n' Savitha wrote:
> Hello:
>
> Here is the command I am trying to run ansible adhoc
>
> ansible -o APP_SERVERS_GROUP[0] -i
> ~/HOSTS/v2/DATA_LAB/DIT/DIT1_DEV/DIT1__LOCAL_CURR/ -m shell -a "{{ curl -sk
> localhost:8080/Log4JControl/version.jsp | trim }}" -u ANSIBLE_USER
>
> The output I get is this
>
>
dit1_dev.cucumber.com | FAILED! => {"failed": true, "msg": "template error
> while templating string: expected token 'end of print statement', got
> 'localhost'. String: {{ curl -sk localhost:8080/Log4JControl/version.jsp |
> trim }}"}
>
> Is this invalid syntax or am I doing this all wrong ?