Yep yep.

(You're also missing some security upgrades, so I would strongly recommend
using 1.7.1 even if you don't need this)

We try to note in the docs every time there's a feature added in a specific
version, but I see we didn't do that for regex_replace, so I'll add the
note about it.

Thanks very much for the report!



On Fri, Sep 12, 2014 at 10:12 AM, Michael Peters <[email protected]>
wrote:

> That's a pretty old version of ansible. I suspect that the
> regex_replace filter didn't exist then. You should definitely upgrade
> since it works on 1.7.1.
>
> On Fri, Sep 12, 2014 at 10:07 AM, Andrew Pashkin
> <[email protected]> wrote:
> > With this playbook:
> >
> > - name: test playbook
> >   hosts: 127.0.0.1
> >   connection: local
> >   gather_facts: no
> >   tasks:
> >     - debug: msg="{{ 'ansible'|replace('a', 'b') }}"
> >
> > Output will be:
> >
> > "bnsible"
> >
> > But with this:
> >
> > - name: test playbook
> >   hosts: 127.0.0.1
> >   connection: local
> >   gather_facts: no
> >   tasks:
> >     - debug: msg="{{ 'ansible'|regex_replace('a', 'b') }}"
> >
> > Output will be:
> >
> > "{{'ansible'|regex_replace('a', 'b')}}"
> >
> >
> > Why in the last example expression is not evaluated?
> >
> > ps
> > I use Ansible 1.5.4
> >
> >
> >
> >
> > --
> > With kind regards, Andrew Pashkin.
> > cell phone - +7 (985) 898 57 59
> > Skype - waves_in_fluids
> > e-mail - [email protected]
> >
> > --
> > 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/5412FE30.1060308%40gmx.co.uk
> .
> > 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/CAJQqANd1hJbvfE%3DOr-YbeXztMpsgoLKsioxAfw2TYrNBcFm14w%40mail.gmail.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/CA%2BnsWgwCXpE1aiRUe54hw7b84cc7Qc6CV5GtUhK3AXMQK5XHtw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to