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.

Reply via email to