Thanks a lot Marko, I used your syntax:
  dual|regex_replace('^SRV(.*)', 'True')

Le mardi 7 février 2017 14:45:44 UTC+1, fanvalt a écrit :
>
> Hello,
>
> Actually I wrote my playbook this way to set values id the dual variable 
> is the string value SRV:
>
>    - set_fact:
>       distrib: "{{ distribsrv }}"
>       Directoryname: "{{ Directorysrv }}"
>      when: dual == 'SRV'
>
> I would like to modify the when condition to run it when dual == 'SRV1', 
> "SRV2' ... etc, is there a way to do a when condition : when : dual like 
> 'SRV*' ?
>

-- 
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/e373ed2d-8677-4315-af21-c97d1eba1c06%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to