On 07.02.17 17:07 fanvalt wrote: > Thanks a lot Marko, I used your syntax: > dual|regex_replace('^SRV(.*)', 'True')
Did you try the following? > No need to use regex for pattern searching. You can use search like > this: > > when: name_prefix | search("stage-dbs") from https://stackoverflow.com/questions/34429842/how-to-evaluate-a-when-condition-for-ansible-task In your case this should be: when: dual | search("SRV") Johannes -- 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/b4c7d77f-02fc-c816-0d9c-f2e258be28a6%40ojkastl.de. For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: OpenPGP digital signature