Ansible Quotes Inside Quotes
Test in current devel another related fix seems to have fixed it for me.
Ansible quotes inside quotes. Copy link quote reply member bcoca commented feb 27 2015. A content value x where a var x is defined with quotes within will not necessarily result in the quotes and whitespace being preserved. Before ansible 2 0. Hello everyone i m also affected by this bug cassandra only tolerates single quotes in its json format for replication strategy.
No variation of the following actions will compile. One example is docker mounted files which cannot be updated atomically from inside the container and can only be written in an unsafe manner. I think when you say it is changing double to single quotes it s actually just how a dict prints. I can t figure a way to replace double quotes by single quotes in the following playbook.
Bug report ansible version. Using filters to manipulate data. Osx but probably n a summary. I m not sure of a way to say yes ansible this is exactly the string i want don t mess with it i could be totally wrong of.
Ansible cannot escape single quotes in regexp replace. My only guess is that ansible is trying to be clever and parse this as json and is internally storing it as a dict. I ve tried escaping the quotes with no luck. Or quote it like 644 or 1777 so ansible receives a string and can do its own conversion from string into number.
Can t escape quotes inside of commands steps to reproduce. Quoting appears to be mangled in some cases and ansible can be made to throw exceptions with others.