Hi,
I'm using Ansible 2.5 and trying to escape single quote in a string. This string will be passed as argument to shell command.
regex_replace("'", "\'") is giving error.
- set_fact:
default_passphrase: "{{ Secrete123'!#) | regex_replace('"'"', '"\'"') }}"
Please suggest how to achieve this.
Thanks,
-Veena