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