I'm getting an unbalance quote error on this short playbook.   I'm not 
seeing the error

---
- hosts: devcluster
  remote_user: ansible
  sudo: yes

  tasks:

  -name: add jmx host entry to devjboss cluster
   action: lineinfile dest="/etc/hosts" backup=yes  state="present" 
insertafter="mydomain.local" line="10.53.153.37 jms-server01"

Error:
ERROR: Syntax Error while loading YAML script, add_host_test.yml
Note: The error may actually appear before this position: line 9, column 10

  -name: add jmx host entry to devjboss cluster
   action: lineinfile dest="/etc/hosts" backup=yes  state="present" 
insertafter="gordmans.local" line="10.53.153.37 jms-server01"
         ^
We could be wrong, but this one looks like it might be an issue with
unbalanced quotes.  If starting a value with a quote, make sure the
line ends with the same set of quotes.  For instance this arbitrary
example:

TIA

Dave

-- 
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/78827428-a1a3-4dc7-a947-def44fb2d5d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to