Trying to validate that a specific variable must have one of pre-determined 
values, mimicking dropdown in survey in ansible tower/awx.

I have the following code but it only matches for upper case:

vars:
    environments:  [DEV, UAT, PROD]
     env: DEV

tasks:
- fail: msg="Not valid value" 
  when: version not in environments

 Is there a way to achieve the survey's dropdown functionality that is case 
insensitive.

Thanks in advance.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1e820f7b-da58-4aa4-bc66-dc885350946bn%40googlegroups.com.

Reply via email to