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
<andrew.pash...@gmx.co.uk> 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 - andrew.pash...@gmx.co.uk
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> 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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
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.

Reply via email to