Thanks for your answer,
but why when show my variable i see :
"atime": 1552039856.1979122,
"ctime": 1552039856.1899123,
"dev": 65027,
"gid": 1003,
"gr_name": "ansible",
"inode": 125043,
"isblk": false,
"ischr": false,
"isdir": false,
"isfifo": false,
"isgid": false,
"islnk": false,
"isreg": true,
"issock": false,
"isuid": false,
"mode": "0644",
"mtime": 1552039856.1899123,
"nlink": 1,
"path":
"//home/my_user/roles/http/files/groups/my_groupe.txt",
"pw_name": "ansible",
"rgrp": true,
"roth": true,
"rusr": true,
"size": 44,
"uid": 1003,
"wgrp": false,
"woth": false,
"wusr": true,
"xgrp": false,
"xoth": false,
"xusr": false
My variable must content only my_groupe.txt
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/6df1232b-e2bf-40db-a72a-072512431afa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.