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 ?

All I am trying to avoid is the \r\n chars in the output.

-Narahari

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/19f71441-5c94-453f-a71c-1ad87ae50fd0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to