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/88dfc3e6-e7fd-40f4-a763-6f78ab957e31%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to