I wrote this:
vars:
services:
- SRV
- SRV[1:99]
- set_fact:
distrib: "{{ distribsrv }}"
when: dual in services
but dual is SRV2 and the set_fact module has been ignored
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/36110d07-dce2-4450-baec-6fe1a982746f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.