escape double quote issue at ansible 1.9.3

70 views
Skip to first unread message

jack

unread,
Sep 24, 2015, 5:49:49 PM9/24/15
to Ansible Project
Hi, All

We have the ansible task similar like this, which works fine at ansible 1.5
    - name: set fact
      set_fact: option="--op \"type eq 'db'\""

At 1.5, the option was set to 
    --op "type eq 'db'"

But after we upgrade ansible to 1.9.3, the option fact is set to
    --op \"type eq 'db'\" 

So it looks like that at 1.9, the escape logic has been changed. What is the correct way to escape the double quotes?

Thanks
Jack
Reply all
Reply to author
Forward
0 new messages