I am trying to escape a single quote in my string:
${join("\n",formatlist("%s ansible_host=%s ansible_ssh_common_args='-o ProxyCommand=\"ssh -W %%h:%%p -q cloud-user@%s\"'","${module.compute.ops_master_names}","${module.compute.ops_master_priv_ips}","${module.ips.bastion_fips[0]}"))}"
I have tried with different combinations (\' or \\' or '' or ' ), but I received an illegal char escape or it doesn't print the single quote. my need is print the line
ansible_ssh_common_args='-o ProxyCommand="ssh -W %h:%p -q cloud-user@%s"'
the double quote and percentage character are well interpreted