Same answer '\\&' not works !!
someone have an idea please why replace('&', '\&') not works ?!!
Thank you very much
Regards,
Le vendredi 8 mars 2019 14:58:11 UTC+1, Mauricio Tavares a écrit :
>
> On Fri, Mar 8, 2019 at 8:06 AM <[email protected] <javascript:>> wrote:
> >
> > hi all,
> >
> > I want replace all caracter " & " by " \& "
> >
> >
> > - set_fact:
> > remplace: "{{ mon_groupe | replace('&', '\&') }}"
> >
> > but when i use this task it's not work.
> > It's works only i skip " \ "
> >
> Try '\\&' instead
>
> > Someone have an idea please !! :)
> >
> > Thank you very much !!
> >
> > Regards,
> >
> > --
> > 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] <javascript:>.
> > To post to this group, send email to [email protected]
> <javascript:>.
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/bdfa8028-f922-471b-94b5-1d7b81726a6c%40googlegroups.com.
>
>
> > For more options, visit https://groups.google.com/d/optout.
>
--
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/8cacf438-cf7e-40f2-9e39-15b0388e49f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.