My issue is: I would like to run a task when a variable start with 'SRV' 
(srv1, SRV2 ...) ad I don't know how to write the condition: when: dual 
like 'SRV*'

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 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/e7cf39be-316a-4ed5-98a6-aa6d366a48d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to