I know this has been a bug in the recent past, but I'm running into this 
with Ansible 1.9.4 on FreeBSD.

 - name: update loader.conf
    lineinfile: dest={{ item.dest }} regexp={{ item.regexp }} line={{ 
item.line}} state={{ item.state }} backup={{ item.backup }} create={{ 
item.create }}
    with_items:
      - { dest: "/boot/loader.conf", regexp: "^vmm_load", line: 
"vmm_load=\"YES\"", state: "present", backup: "no", create: "yes" }
 

Obviously I'm wanting the result to be:
vmm_load="YES"

However the actual result is:
vmm_load=YES


I do see that the following *does* work as expected (note removed quotes):
 - name: update loader.conf
    lineinfile: dest={{ item.dest }} regexp={{ item.regexp }} line={{ 
item.line}} state={{ item.state }} backup={{ item.backup }} create={{ 
item.create }}
    with_items:
      - { dest: "/boot/loader.conf", regexp: "^vmm_load", line: 
vmm_load=\"YES\", state: "present", backup: "no", create: "yes" }


Am I incorrectly placing double quotes around everything in my dict, or is 
ansible failing to handle yaml like it should?

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/b83b0947-b800-46f1-ab7d-9cea6ac4b23d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to